Trait BaseType

Source
pub trait BaseType: Sized {
    const TYPE: CSTL_Type = _;
    const SIZE: usize = _;
    const ALIGN: usize = _;
    const DROP: CSTL_DropType = _;

    // Provided method
    unsafe extern "C" fn raw_drop(
        first: NonNull<Self>,
        last: NonNull<Self>,
    ) { ... }
}
Expand description

Trait for sized types.

Besides the size and alignment, also provides a CSTL_DropType table.

Provided Associated Constants§

Source

const TYPE: CSTL_Type = _

CSTL type handle.

Source

const SIZE: usize = _

Size of type.

For ZSTs it is equal to 1.

Source

const ALIGN: usize = _

Alignment of type.

Source

const DROP: CSTL_DropType = _

CSTL destructible type table.

Provided Methods§

Source

unsafe extern "C" fn raw_drop( first: NonNull<Self>, last: NonNull<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§

Source§

impl<T> BaseType for T