Skip to main content

DropReason

Trait DropReason 

Source
pub trait DropReason:
    Copy
    + Eq
    + 'static {
    const ALL: &'static [Self];

    // Required method
    fn ordinal(self) -> usize;
}
Expand description

Closed caller-owned drop taxonomy.

Required Associated Constants§

Source

const ALL: &'static [Self]

Every variant exactly once, in ordinal order.

Required Methods§

Source

fn ordinal(self) -> usize

Fixed zero-based index into Self::ALL, determined only by self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§