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: Emitter, U: Emitter> Emitter for And<T, U>
impl<T: Emitter, U: Emitter> Emitter for And<T, U>
Source§impl<A: Props, B: Props> Props for And<A, B>
impl<A: Props, B: Props> Props for And<A, B>
Source§fn for_each<'kv, F: FnMut(Str<'kv>, Value<'kv>) -> ControlFlow<()>>(
&'kv self,
for_each: F,
) -> ControlFlow<()>
fn for_each<'kv, F: FnMut(Str<'kv>, Value<'kv>) -> ControlFlow<()>>( &'kv self, for_each: F, ) -> ControlFlow<()>
Source§fn get<'v, K: ToStr>(&'v self, key: K) -> Option<Value<'v>>
fn get<'v, K: ToStr>(&'v self, key: K) -> Option<Value<'v>>
Get the value for a given key, if it’s present. Read more
Source§fn size(&self) -> Option<usize>
fn size(&self) -> Option<usize>
A hint on the number of properties in the collection. Read more
Source§fn pull<'kv, V: FromValue<'kv>, K: ToStr>(&'kv self, key: K) -> Option<V>
fn pull<'kv, V: FromValue<'kv>, K: ToStr>(&'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 and_props<U: Props>(self, other: U) -> And<Self, U>where
Self: Sized,
fn and_props<U: Props>(self, other: U) -> And<Self, U>where
Self: Sized,
Concatenate
other to the end of self.Source§fn filter<F: Fn(Str<'_>, Value<'_>) -> bool>(self, filter: F) -> Filter<Self, F>where
Self: Sized,
fn filter<F: Fn(Str<'_>, Value<'_>) -> bool>(self, filter: F) -> Filter<Self, F>where
Self: Sized,
Filter the set of properties. Read more
Source§fn collect<'kv, C: FromProps<'kv>>(&'kv self) -> C
fn collect<'kv, C: FromProps<'kv>>(&'kv self) -> C
Collect these properties into another collection type. Read more
Source§fn as_map(&self) -> &AsMap<Self>where
Self: Sized,
fn as_map(&self) -> &AsMap<Self>where
Self: Sized,
Get an adapter that will serialize properties as a map.
impl<T: InternalEmitter, U: InternalEmitter> InternalEmitter for And<T, U>
impl<T: InternalFilter, U: InternalFilter> InternalFilter for And<T, U>
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