[−][src]Enum rustc_mir::util::elaborate_drops::DropStyle
Describes how/if a value should be dropped.
Variants
The value is already dead at the drop location, no drop will be executed.
The value is known to always be initialized at the drop location, drop will always be executed.
Whether the value needs to be dropped depends on its drop flag.
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.