pub enum InitMark<'s> {
Struct {
index: usize,
set: &'s mut InitSet64,
},
Ignored,
}
Expand description
InitMark
is used to track the initialization state of a single field within an InitSet64
.
It is part of a system used to progressively initialize structs, where each field’s
initialization status is represented by a bit in a 64-bit set.
Variants§
Struct
Represents a field in a struct that needs to be tracked for initialization.
Fields
Ignored
Represents a field or value that doesn’t need initialization tracking.
Implementations§
Auto Trait Implementations§
impl<'s> Freeze for InitMark<'s>
impl<'s> RefUnwindSafe for InitMark<'s>
impl<'s> Send for InitMark<'s>
impl<'s> Sync for InitMark<'s>
impl<'s> Unpin for InitMark<'s>
impl<'s> !UnwindSafe for InitMark<'s>
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