From d77491188b89cc48756130b5898da6a88dcd4f12 Mon Sep 17 00:00:00 2001 From: timofey Date: Thu, 31 Aug 2023 20:13:05 +0000 Subject: [PATCH] `AsRef` for `Bound` --- src/flow/binary/bound.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/flow/binary/bound.rs b/src/flow/binary/bound.rs index 5c67957..829b691 100644 --- a/src/flow/binary/bound.rs +++ b/src/flow/binary/bound.rs @@ -17,6 +17,12 @@ impl std::ops::Deref for Bound { } } +impl AsRef for Bound { + fn as_ref(&self) -> &T { + &self.bound + } +} + pub struct BoundNode { boundsl: Bounds, boundsr: Bounds,