Trait Object

Source
pub trait Object: Sized {
    const OBJECT_ALIGN: usize = _;

    // Provided methods
    fn object_size(&self) -> usize { ... }
    unsafe fn object_drop(&mut self) { ... }
}
Expand description

Object properties

Provided Associated Constants§

Provided Methods§

Source

fn object_size(&self) -> usize

Source

unsafe fn object_drop(&mut self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§