[−][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]
T: 'static + AtomBody + Sized + Copy,
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]
T: 'static + AtomBody + Sized + Copy,
type InitializationParameter = ()
The type of the parameter for initialize_body
Read more
fn get_uri() -> &'static CStr
[src]
unsafe fn initialize_body<'a, W>(
writer: &mut W,
_: &(),
urids: &mut CachedMap
) -> Result<(), ()> where
W: WritingFrame<'a> + WritingFrameExt<'a, Self>,
[src]
writer: &mut W,
_: &(),
urids: &mut CachedMap
) -> Result<(), ()> where
W: WritingFrame<'a> + WritingFrameExt<'a, Self>,