Struct collenchyma::frameworks::native::flatbox::FlatBox
[−]
[src]
pub struct FlatBox { // some fields omitted }
A Box without any knowledge of its underlying type.
Methods
impl FlatBox
fn from_box(b: Box<[u8]>) -> FlatBox
Create FlatBox from Box, consuming it.
fn as_slice<T>(&self) -> &[T]
Access memory as slice.
The preffered way to access native memory.
fn as_mut_slice<T>(&mut self) -> &mut [T]
Access memory as mutable slice.
The preffered way to access native memory.
fn byte_size(&self) -> usize
Returns memory size of the Flatbox.