Type Alias IDebug

Source
pub type IDebug<B> = IOwned<DebugMarker<B>>;
Expand description

An Inspect smart pointer for a type B, which renders the debug output of B as a string property.

Aliased Type§

struct IDebug<B> { /* private fields */ }

Implementations

Source§

impl<R: Render> IOwned<R>

Source

pub fn new(value: R::Base) -> Self

Construct the smart pointer but don’t populate any inspect state.

Source

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].

Source

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.

Source

pub fn iset(&mut self, value: R::Base)

Set the value, then update inspect state.

Source

pub fn into_inner(self) -> R::Base

Trait Implementations§

Source§

impl<B: Debug> From<B> for IDebug<B>

Source§

fn from(value: B) -> Self

Converts to this type from the input type.
Source§

impl<R, B> Debug for IOwned<R>
where R: Render<Base = B>, B: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<R, B> Default for IOwned<R>
where R: Render<Base = B>, B: Default,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<R: Render> Deref for IOwned<R>

Source§

type Target = <R as Render>::Base

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<R, B> Display for IOwned<R>
where R: Render<Base = B>, B: Display,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more