pub struct InspectableLenWatcher { /* private fields */ }Expand description
Exports via an Inspect UintProperty the len of the wrapped container.
Trait Implementations§
Source§impl Debug for InspectableLenWatcher
impl Debug for InspectableLenWatcher
Source§impl<V> Watch<V> for InspectableLenWatcherwhere
V: Len,
impl<V> Watch<V> for InspectableLenWatcherwhere
V: Len,
Source§fn new<'a>(value: &V, node: &Node, name: impl Into<Cow<'a, str>>) -> Self
fn new<'a>(value: &V, node: &Node, name: impl Into<Cow<'a, str>>) -> Self
Used by
Inspectable::new() to create a Watcher that exports via
Inspect the Inspectable’s wrapped value.Source§fn watch(&mut self, value: &V)
fn watch(&mut self, value: &V)
Called by
InspectableGuard when the guard is dropped, letting the
Watcher update its state with the updated value.Auto Trait Implementations§
impl Freeze for InspectableLenWatcher
impl !RefUnwindSafe for InspectableLenWatcher
impl Send for InspectableLenWatcher
impl Sync for InspectableLenWatcher
impl Unpin for InspectableLenWatcher
impl !UnwindSafe for InspectableLenWatcher
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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