pub type IValue<B> = IOwned<ValueMarker<B>>;
Expand description
An Inspect
smart pointer for a type B
, which renders an
inspect subtree as defined by B: Unit
.
Aliased Type§
struct IValue<B> { /* private fields */ }
Implementations
Source§impl<R: Render> IOwned<R>
impl<R: Render> IOwned<R>
Sourcepub fn new(value: R::Base) -> Self
pub fn new(value: R::Base) -> Self
Construct the smart pointer but don’t populate any inspect state.
Sourcepub fn attached(value: R::Base, parent: &Node, name: impl AsRef<str>) -> Self
pub fn attached(value: R::Base, parent: &Node, name: impl AsRef<str>) -> Self
Construct the smart pointer and populate the inspect state under parent[name].
Sourcepub fn as_mut(&mut self) -> IOwnedMutGuard<'_, R>
pub fn as_mut(&mut self) -> IOwnedMutGuard<'_, R>
Returns a RAII guard which can be used for mutations. When the guard goes out of scope, the new inspect state is published.