Enum rustc_mir_dataflow::move_paths::InitKind
source · pub enum InitKind {
Deep,
Shallow,
NonPanicPathOnly,
}
Expand description
Additional information about the initialization.
Variants
Deep
Deep init, even on panic
Shallow
Only does a shallow init
NonPanicPathOnly
This doesn’t initialize the variable on panic (and a panic is possible).
Trait Implementations
impl Copy for InitKind
impl Eq for InitKind
impl StructuralEq for InitKind
impl StructuralPartialEq for InitKind
Auto Trait Implementations
impl RefUnwindSafe for InitKind
impl Send for InitKind
impl Sync for InitKind
impl Unpin for InitKind
impl UnwindSafe for InitKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Deep
: 0 bytesShallow
: 0 bytesNonPanicPathOnly
: 0 bytes