From 65e6e13500de7811a8f447a80f3063bdae0a539c Mon Sep 17 00:00:00 2001 From: Denis Biryukov Date: Fri, 22 Nov 2024 12:51:17 +0100 Subject: [PATCH] explain behaviour of keyexpr_intersect and keyexpr_include in case of conversion failure --- zenoh/src/api/key_expr.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zenoh/src/api/key_expr.rs b/zenoh/src/api/key_expr.rs index 64703d77f..a1daea6c0 100644 --- a/zenoh/src/api/key_expr.rs +++ b/zenoh/src/api/key_expr.rs @@ -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>, @@ -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>,