[][src]Struct nitric_component::util::DebugInstanceId

pub struct DebugInstanceId { /* fields omitted */ }

Like InstanceId, but only effective in debug mode.

Methods

impl DebugInstanceId
[src]

Creates a new, unique instance id that is only used with debug assertions enabled.

If debug assertions are enabled, asserts instance id and reference are equal. Otherwise, does nothing.

Creates a "reference" of this instance id. This is essentially like cloning, but InstanceIds don't implement Clone on purpose since values caring it should never be cloned.

No-op if debug assertions are disabled.

Returns the inner instance id.

This function is only available if debug assertion are enabled.

Trait Implementations

impl Default for DebugInstanceId
[src]

impl Debug for DebugInstanceId
[src]

Auto Trait Implementations

impl Send for DebugInstanceId

impl Sync for DebugInstanceId

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]