[][src]Trait rfc2580::AlignedMetaData

pub trait AlignedMetaData: MetaData {
    pub fn align(&self) -> usize;
}

AlignedMetaData.

A trait extending meta-data with a method to obtain the alignment of the pointer to data; useful for ThinBox.

Note: with access to the meta-data in the v-table, it would be possible to obtain the size, and thus the full Layout.

Required methods

pub fn align(&self) -> usize[src]

The alignment of the corresponding pointer to data.

Loading content...

Implementors

impl<T> AlignedMetaData for SizedMetaData<T>[src]

impl<T> AlignedMetaData for SliceMetaData<T>[src]

impl<T: ?Sized> AlignedMetaData for DynMetaData<T>[src]

Loading content...