Skip to content

Commit

Permalink
explain behaviour of keyexpr_intersect and keyexpr_include in case of…
Browse files Browse the repository at this point in the history
… conversion failure
  • Loading branch information
DenisBiryukov91 committed Nov 22, 2024
1 parent eced4f3 commit 65e6e13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zenoh/src/api/key_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ impl<'a> KeyExpr<'a> {
}
}

/// Will return false in case of TryInto failure.
#[inline]
pub(crate) fn keyexpr_intersect<'b, L, R>(left: L, right: R) -> bool
where
L: TryInto<KeyExpr<'a>>,
Expand All @@ -285,6 +287,8 @@ impl<'a> KeyExpr<'a> {
}
}

/// Will return false in case of TryInto failure.
#[inline]
pub(crate) fn keyexpr_include<'b, L, R>(left: L, right: R) -> bool
where
L: TryInto<KeyExpr<'a>>,
Expand Down

0 comments on commit 65e6e13

Please sign in to comment.