AsRef for Bound
All checks were successful
buildbot/cargo fmt (1.72) Build done.
buildbot/cargo clippy (1.65) Build done.
buildbot/cargo clippy (1.72) Build done.
buildbot/cargo doc (1.72) Build done.
buildbot/cargo test (1.65) Build done.

This commit is contained in:
AF 2023-08-31 20:13:05 +00:00
parent bbe0602b7a
commit d77491188b

View File

@ -17,6 +17,12 @@ impl<A, T> std::ops::Deref for Bound<A, T> {
} }
} }
impl<A, T> AsRef<T> for Bound<A, T> {
fn as_ref(&self) -> &T {
&self.bound
}
}
pub struct BoundNode<A, T> { pub struct BoundNode<A, T> {
boundsl: Bounds<A>, boundsl: Bounds<A>,
boundsr: Bounds<A>, boundsr: Bounds<A>,