Struct Predicate
pub struct Predicate<P>(pub P)
where
P: PredicateInner;Expand description
An Predicate is a logical condition that represents a header space.
§Methods
- ! : logical NOT
- & : logical AND
- [|] : logical OR
- [-] : logical DIFF
- [==] : equality
- is_empty : check if the predicate is empty
§Operations explained
Predicate hide reference counting inside, it is coherent with the Rust ownership model. When a predicate is moved, it is de-referenced automatically and the underlying data structure (like bdd nodes) may be garbage collected afterward. When a new predicate is produced, it is referenced automatically.
§Unary operation has two forms
let b = !a:ais movedlet b = !&a:ais NOT moved
§Binary operations have three forms
&, |, - have the same forms. Take & for example:
let c = a & b:aandbare movedlet c = a & &b:ais movedlet c = &a & b: none is movedlet a &= b:ais mutated andbis movedlet a &= &b:ais mutated
§Examples
This example demonstrates how to use the & and &= like methods.
use rapimt_core::fm_ipv4_from;
use rapimt_core::prelude::{
ipv4_to_match,
Predicate, MatchEncoder,
RuddyPredicateEngine, FieldMatch
};
fn get_predicates<ME: for <'a> MatchEncoder<'a>>(engine: &ME)-> [Predicate<<ME as MatchEncoder<'_>>::P>;3] {
[
engine.encode_match(fm_ipv4_from!("dip", "192.168.1.0/24")).0,
engine.encode_match(fm_ipv4_from!("dip", "192.168.1.0/25")).0,
engine.encode_match(fm_ipv4_from!("dip", "192.168.1.0/26")).0,
]
}
let engine = RuddyPredicateEngine::init(1000, 100);
// p2, p3 are dropped and should no longer be used afterward
let [mut p1, p2, p3] = get_predicates(&engine);
let p123 = {
p1 &= p2;
p1 &= p3;
p1
};
// get the cross product of [p1, p2, p3] and [p1, p2, p3]
// since iter() returns reference, the predicates are not moved
let pls = Vec::from(get_predicates(&engine));
let prs = Vec::from(get_predicates(&engine));
let mut res = vec![];
for pl in pls.iter() {
for pr in prs.iter() {
res.push(pl & pr);
}
}Tuple Fields§
§0: PImplementations§
Trait Implementations§
§impl<P> BitAnd<&Predicate<P>> for &Predicate<P>where
P: PredicateInner,
impl<P> BitAnd<&Predicate<P>> for &Predicate<P>where
P: PredicateInner,
§impl<P> BitAnd<&Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> BitAnd<&Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§impl<P> BitAnd<&Predicate<P>> for Predicate<P>where
P: PredicateInner,
impl<P> BitAnd<&Predicate<P>> for Predicate<P>where
P: PredicateInner,
§impl<P> BitAnd<&mut Predicate<P>> for &Predicate<P>where
P: PredicateInner,
impl<P> BitAnd<&mut Predicate<P>> for &Predicate<P>where
P: PredicateInner,
§impl<P> BitAnd<&mut Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> BitAnd<&mut Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§impl<P> BitAnd<&mut Predicate<P>> for Predicate<P>where
P: PredicateInner,
impl<P> BitAnd<&mut Predicate<P>> for Predicate<P>where
P: PredicateInner,
§impl<P> BitAnd<Predicate<P>> for &Predicate<P>where
P: PredicateInner,
impl<P> BitAnd<Predicate<P>> for &Predicate<P>where
P: PredicateInner,
§impl<P> BitAnd<Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> BitAnd<Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§impl<P> BitAnd for Predicate<P>where
P: PredicateInner,
impl<P> BitAnd for Predicate<P>where
P: PredicateInner,
§impl<P> BitAndAssign<&Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> BitAndAssign<&Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§fn bitand_assign(&mut self, rhs: &Predicate<P>)
fn bitand_assign(&mut self, rhs: &Predicate<P>)
Performs the
&= operation. Read more§impl<P> BitAndAssign<&Predicate<P>> for Predicate<P>where
P: PredicateInner,
impl<P> BitAndAssign<&Predicate<P>> for Predicate<P>where
P: PredicateInner,
§fn bitand_assign(&mut self, rhs: &Predicate<P>)
fn bitand_assign(&mut self, rhs: &Predicate<P>)
Performs the
&= operation. Read more§impl<P> BitAndAssign<&mut Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> BitAndAssign<&mut Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§fn bitand_assign(&mut self, rhs: &mut Predicate<P>)
fn bitand_assign(&mut self, rhs: &mut Predicate<P>)
Performs the
&= operation. Read more§impl<P> BitAndAssign<&mut Predicate<P>> for Predicate<P>where
P: PredicateInner,
impl<P> BitAndAssign<&mut Predicate<P>> for Predicate<P>where
P: PredicateInner,
§fn bitand_assign(&mut self, rhs: &mut Predicate<P>)
fn bitand_assign(&mut self, rhs: &mut Predicate<P>)
Performs the
&= operation. Read more§impl<P> BitAndAssign<Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> BitAndAssign<Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§fn bitand_assign(&mut self, rhs: Predicate<P>)
fn bitand_assign(&mut self, rhs: Predicate<P>)
Performs the
&= operation. Read more§impl<P> BitAndAssign for Predicate<P>where
P: PredicateInner,
impl<P> BitAndAssign for Predicate<P>where
P: PredicateInner,
§fn bitand_assign(&mut self, rhs: Predicate<P>)
fn bitand_assign(&mut self, rhs: Predicate<P>)
Performs the
&= operation. Read more§impl<P> BitOr<&Predicate<P>> for &Predicate<P>where
P: PredicateInner,
impl<P> BitOr<&Predicate<P>> for &Predicate<P>where
P: PredicateInner,
§impl<P> BitOr<&Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> BitOr<&Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§impl<P> BitOr<&Predicate<P>> for Predicate<P>where
P: PredicateInner,
impl<P> BitOr<&Predicate<P>> for Predicate<P>where
P: PredicateInner,
§impl<P> BitOr<&mut Predicate<P>> for &Predicate<P>where
P: PredicateInner,
impl<P> BitOr<&mut Predicate<P>> for &Predicate<P>where
P: PredicateInner,
§impl<P> BitOr<&mut Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> BitOr<&mut Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§impl<P> BitOr<&mut Predicate<P>> for Predicate<P>where
P: PredicateInner,
impl<P> BitOr<&mut Predicate<P>> for Predicate<P>where
P: PredicateInner,
§impl<P> BitOr<Predicate<P>> for &Predicate<P>where
P: PredicateInner,
impl<P> BitOr<Predicate<P>> for &Predicate<P>where
P: PredicateInner,
§impl<P> BitOr<Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> BitOr<Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§impl<P> BitOr for Predicate<P>where
P: PredicateInner,
impl<P> BitOr for Predicate<P>where
P: PredicateInner,
§impl<P> BitOrAssign<&Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> BitOrAssign<&Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§fn bitor_assign(&mut self, rhs: &Predicate<P>)
fn bitor_assign(&mut self, rhs: &Predicate<P>)
Performs the
|= operation. Read more§impl<P> BitOrAssign<&Predicate<P>> for Predicate<P>where
P: PredicateInner,
impl<P> BitOrAssign<&Predicate<P>> for Predicate<P>where
P: PredicateInner,
§fn bitor_assign(&mut self, rhs: &Predicate<P>)
fn bitor_assign(&mut self, rhs: &Predicate<P>)
Performs the
|= operation. Read more§impl<P> BitOrAssign<&mut Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> BitOrAssign<&mut Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§fn bitor_assign(&mut self, rhs: &mut Predicate<P>)
fn bitor_assign(&mut self, rhs: &mut Predicate<P>)
Performs the
|= operation. Read more§impl<P> BitOrAssign<&mut Predicate<P>> for Predicate<P>where
P: PredicateInner,
impl<P> BitOrAssign<&mut Predicate<P>> for Predicate<P>where
P: PredicateInner,
§fn bitor_assign(&mut self, rhs: &mut Predicate<P>)
fn bitor_assign(&mut self, rhs: &mut Predicate<P>)
Performs the
|= operation. Read more§impl<P> BitOrAssign<Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> BitOrAssign<Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§fn bitor_assign(&mut self, rhs: Predicate<P>)
fn bitor_assign(&mut self, rhs: Predicate<P>)
Performs the
|= operation. Read more§impl<P> BitOrAssign for Predicate<P>where
P: PredicateInner,
impl<P> BitOrAssign for Predicate<P>where
P: PredicateInner,
§fn bitor_assign(&mut self, rhs: Predicate<P>)
fn bitor_assign(&mut self, rhs: Predicate<P>)
Performs the
|= operation. Read more§impl<P> Clone for Predicate<P>where
P: PredicateInner,
impl<P> Clone for Predicate<P>where
P: PredicateInner,
§impl<P> Debug for Predicate<P>where
P: PredicateInner,
impl<P> Debug for Predicate<P>where
P: PredicateInner,
§impl<P> Display for Predicate<P>where
P: PredicateInner,
impl<P> Display for Predicate<P>where
P: PredicateInner,
§impl<P> Drop for Predicate<P>where
P: PredicateInner,
impl<P> Drop for Predicate<P>where
P: PredicateInner,
§impl<P> From<P> for Predicate<P>where
P: PredicateInner,
impl<P> From<P> for Predicate<P>where
P: PredicateInner,
§impl<P> Hash for Predicate<P>where
P: Hash + PredicateInner,
impl<P> Hash for Predicate<P>where
P: Hash + PredicateInner,
§impl<P> Not for &Predicate<P>where
P: PredicateInner,
!(&predicate) consumes the predicate reference.
impl<P> Not for &Predicate<P>where
P: PredicateInner,
!(&predicate) consumes the predicate reference.
§impl<P> Not for Predicate<P>where
P: PredicateInner,
!predicate consumes the predicate.
impl<P> Not for Predicate<P>where
P: PredicateInner,
!predicate consumes the predicate.
§impl<P> Ord for Predicate<P>where
P: Ord + PredicateInner,
impl<P> Ord for Predicate<P>where
P: Ord + PredicateInner,
§impl<P> PartialEq for Predicate<P>where
P: PartialEq + PredicateInner,
impl<P> PartialEq for Predicate<P>where
P: PartialEq + PredicateInner,
§impl<P> PartialOrd for Predicate<P>where
P: PartialOrd + PredicateInner,
impl<P> PartialOrd for Predicate<P>where
P: PartialOrd + PredicateInner,
§impl<P> Sub<&Predicate<P>> for &Predicate<P>where
P: PredicateInner,
impl<P> Sub<&Predicate<P>> for &Predicate<P>where
P: PredicateInner,
§impl<P> Sub<&Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> Sub<&Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§impl<P> Sub<&Predicate<P>> for Predicate<P>where
P: PredicateInner,
impl<P> Sub<&Predicate<P>> for Predicate<P>where
P: PredicateInner,
§impl<P> Sub<&mut Predicate<P>> for &Predicate<P>where
P: PredicateInner,
impl<P> Sub<&mut Predicate<P>> for &Predicate<P>where
P: PredicateInner,
§impl<P> Sub<&mut Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> Sub<&mut Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§impl<P> Sub<&mut Predicate<P>> for Predicate<P>where
P: PredicateInner,
impl<P> Sub<&mut Predicate<P>> for Predicate<P>where
P: PredicateInner,
§impl<P> Sub<Predicate<P>> for &Predicate<P>where
P: PredicateInner,
impl<P> Sub<Predicate<P>> for &Predicate<P>where
P: PredicateInner,
§impl<P> Sub<Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> Sub<Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§impl<P> Sub for Predicate<P>where
P: PredicateInner,
impl<P> Sub for Predicate<P>where
P: PredicateInner,
§impl<P> SubAssign<&Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> SubAssign<&Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§fn sub_assign(&mut self, rhs: &Predicate<P>)
fn sub_assign(&mut self, rhs: &Predicate<P>)
Performs the
-= operation. Read more§impl<P> SubAssign<&Predicate<P>> for Predicate<P>where
P: PredicateInner,
impl<P> SubAssign<&Predicate<P>> for Predicate<P>where
P: PredicateInner,
§fn sub_assign(&mut self, rhs: &Predicate<P>)
fn sub_assign(&mut self, rhs: &Predicate<P>)
Performs the
-= operation. Read more§impl<P> SubAssign<&mut Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> SubAssign<&mut Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§fn sub_assign(&mut self, rhs: &mut Predicate<P>)
fn sub_assign(&mut self, rhs: &mut Predicate<P>)
Performs the
-= operation. Read more§impl<P> SubAssign<&mut Predicate<P>> for Predicate<P>where
P: PredicateInner,
impl<P> SubAssign<&mut Predicate<P>> for Predicate<P>where
P: PredicateInner,
§fn sub_assign(&mut self, rhs: &mut Predicate<P>)
fn sub_assign(&mut self, rhs: &mut Predicate<P>)
Performs the
-= operation. Read more§impl<P> SubAssign<Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
impl<P> SubAssign<Predicate<P>> for &mut Predicate<P>where
P: PredicateInner,
§fn sub_assign(&mut self, rhs: Predicate<P>)
fn sub_assign(&mut self, rhs: Predicate<P>)
Performs the
-= operation. Read more§impl<P> SubAssign for Predicate<P>where
P: PredicateInner,
impl<P> SubAssign for Predicate<P>where
P: PredicateInner,
§fn sub_assign(&mut self, rhs: Predicate<P>)
fn sub_assign(&mut self, rhs: Predicate<P>)
Performs the
-= operation. Read moreimpl<P> Eq for Predicate<P>where
P: Eq + PredicateInner,
impl<P> StructuralPartialEq for Predicate<P>where
P: PredicateInner,
Auto Trait Implementations§
impl<P> Freeze for Predicate<P>where
P: Freeze,
impl<P> RefUnwindSafe for Predicate<P>where
P: RefUnwindSafe,
impl<P> Send for Predicate<P>where
P: Send,
impl<P> Sync for Predicate<P>where
P: Sync,
impl<P> Unpin for Predicate<P>where
P: Unpin,
impl<P> UnwindSafe for Predicate<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Conv for T
impl<T> Conv for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.