pub struct And<T, U> { /* private fields */ }Expand description
Two values combined by and-ing.
When combined values don’t have boolean semantics of their own this type is like a join or concatenation.
Implementations§
Trait Implementations§
Source§impl<T, U> Emitter for And<T, U>
impl<T, U> Emitter for And<T, U>
Source§impl<A, B> Props for And<A, B>
impl<A, B> Props for And<A, B>
Source§fn for_each<'kv, F>(&'kv self, for_each: F) -> ControlFlow<()>
fn for_each<'kv, F>(&'kv self, for_each: F) -> ControlFlow<()>
Source§fn get<'v, K>(&'v self, key: K) -> Option<Value<'v>>where
K: ToStr,
fn get<'v, K>(&'v self, key: K) -> Option<Value<'v>>where
K: ToStr,
Get the value for a given key, if it’s present. Read more
Source§fn pull<'kv, V, K>(&'kv self, key: K) -> Option<V>
fn pull<'kv, V, K>(&'kv self, key: K) -> Option<V>
Get the value for a given key, if it’s present as an instance of
V. Read moreSource§fn is_unique(&self) -> bool
fn is_unique(&self) -> bool
Whether the collection is known not to contain any duplicate keys. Read more
Source§impl<T: Source, U: Source> Source for And<T, U>
impl<T: Source, U: Source> Source for And<T, U>
Source§fn sample_metrics<S: Sampler>(&self, sampler: S)
fn sample_metrics<S: Sampler>(&self, sampler: S)
Produce a current sample for all metrics in the source.
Source§fn and_sample<U>(self, other: U) -> And<Self, U>where
Self: Sized,
fn and_sample<U>(self, other: U) -> And<Self, U>where
Self: Sized,
Chain this source to
other, sampling metrics from both.impl<T, U> InternalEmitter for And<T, U>where
T: InternalEmitter,
U: InternalEmitter,
impl<T, U> InternalFilter for And<T, U>where
T: InternalFilter,
U: InternalFilter,
Auto Trait Implementations§
impl<T, U> Freeze for And<T, U>
impl<T, U> RefUnwindSafe for And<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for And<T, U>
impl<T, U> Sync for And<T, U>
impl<T, U> Unpin for And<T, U>
impl<T, U> UnwindSafe for And<T, U>where
T: UnwindSafe,
U: 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