Struct zng_app::event::StaticCommandMetaVarId
source · pub struct StaticCommandMetaVarId<T: StateValue + VarValue>(/* private fields */);Expand description
Lazy inited CommandMetaVarId.
Implementations§
source§impl<T: StateValue + VarValue> StaticCommandMetaVarId<T>
impl<T: StateValue + VarValue> StaticCommandMetaVarId<T>
sourcepub const fn new_unique() -> Self
pub const fn new_unique() -> Self
New static CommandMetaVarId, an unique ID will be generated on the first get.
sourcepub fn get(&self) -> CommandMetaVarId<T>
pub fn get(&self) -> CommandMetaVarId<T>
Gets or generates the unique ID.
Trait Implementations§
source§impl<T: StateValue + VarValue> From<&'static StaticCommandMetaVarId<T>> for CommandMetaVarId<T>
impl<T: StateValue + VarValue> From<&'static StaticCommandMetaVarId<T>> for CommandMetaVarId<T>
source§fn from(st: &'static StaticCommandMetaVarId<T>) -> CommandMetaVarId<T>
fn from(st: &'static StaticCommandMetaVarId<T>) -> CommandMetaVarId<T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> !Freeze for StaticCommandMetaVarId<T>
impl<T> RefUnwindSafe for StaticCommandMetaVarId<T>
impl<T> Send for StaticCommandMetaVarId<T>
impl<T> Sync for StaticCommandMetaVarId<T>
impl<T> Unpin for StaticCommandMetaVarId<T>
impl<T> UnwindSafe for StaticCommandMetaVarId<T>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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