AsRef
for Bound
This commit is contained in:
parent
bbe0602b7a
commit
d77491188b
@ -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>,
|
||||||
|
Loading…
Reference in New Issue
Block a user