[][src]Type Definition lv2rs_atom::vector::Vector

type Vector<T> = ArrayAtomBody<VectorHeader, T>;

A homogenous array of sized atoms.

See the module documentation for more information.

Methods

impl<T> Vector<T> where
    T: 'static + AtomBody + Sized + Copy
[src]

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

Return the size of the child type, according to the vector's body header.

pub fn child_body_type(&self) -> URID[src]

Return the type of the child, according to the vector's body header.

pub fn as_slice(&self) -> &[T][src]

Return a slice containing all items in the vector.

No allocation is done; This method simply borrows the data of the vector.

Trait Implementations

impl<T> AtomBody for Vector<T> where
    T: 'static + AtomBody + Sized + Copy
[src]

type InitializationParameter = ()

The type of the parameter for initialize_body Read more