pub type InspectableLen<V> = Inspectable<V, InspectableLenWatcher>;
Expand description
Exports via an Inspect UintProperty
the len
of the wrapped value V
.
Aliased Type§
struct InspectableLen<V> { /* private fields */ }
Implementations
Source§impl<V, W> Inspectable<V, W>where
W: Watch<V>,
impl<V, W> Inspectable<V, W>where
W: Watch<V>,
Sourcepub fn new<'a>(value: V, node: &Node, name: impl Into<Cow<'a, str>>) -> Self
pub fn new<'a>(value: V, node: &Node, name: impl Into<Cow<'a, str>>) -> Self
Creates an Inspectable
wrapping value
. Exports value
via Inspect.
Sourcepub fn get_mut(&mut self) -> InspectableGuard<'_, V, W>
pub fn get_mut(&mut self) -> InspectableGuard<'_, V, W>
Returns a guard that DerefMut
s to the wrapped value
. The watcher
will receive the updated value
when the guard is Drop
ped.