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