Enum rustc_mir::util::elaborate_drops::DropStyle [−][src]
pub enum DropStyle {
Dead,
Static,
Conditional,
Open,
}Expand description
Describes how/if a value should be dropped.
Variants
Expand description
The value is already dead at the drop location, no drop will be executed.
Expand description
The value is known to always be initialized at the drop location, drop will always be executed.
Expand description
Whether the value needs to be dropped depends on its drop flag.
Expand description
An “open” drop is one where only the fields of a value are dropped.
For example, this happens when moving out of a struct field: The rest of the struct will be dropped in such an “open” drop. It is also used to generate drop glue for the individual components of a value, for example for dropping array elements.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DropStyle
impl Send for DropStyle
impl Sync for DropStyle
impl Unpin for DropStyle
impl UnwindSafe for DropStyle
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]