pub struct Init<'brand>(/* private fields */);Expand description
Meta-state for all non-Born states.
Implementations§
Source§impl<'brand> Init<'brand>
impl<'brand> Init<'brand>
Sourcepub const unsafe fn new(once: Ephemeral<'brand>) -> Self
pub const unsafe fn new(once: Ephemeral<'brand>) -> Self
Creates a new token of this type with an invariant lifetime 'brand.
§Safety
Since tokens of this type are used to provide security guarantees, creating new ones should only be done if it is absolutely certain that the property symbolized by the token is actually upheld by the equally branded object it applies to.
Trait Implementations§
Auto Trait Implementations§
impl<'brand> Freeze for Init<'brand>
impl<'brand> RefUnwindSafe for Init<'brand>
impl<'brand> Send for Init<'brand>
impl<'brand> Sync for Init<'brand>
impl<'brand> Unpin for Init<'brand>
impl<'brand> UnsafeUnpin for Init<'brand>
impl<'brand> UnwindSafe for Init<'brand>
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