pub type Vector<T> = ArrayAtomBody<VectorHeader, T>;Expand description
A homogenous array of sized atoms.
See the module documentation for more information.
Aliased Type§
#[repr(C)]pub struct Vector<T> {
pub header: VectorHeader,
pub data: [T],
}Fields§
§header: VectorHeader§data: [T]Implementations§
Source§impl<T> Vector<T>
impl<T> Vector<T>
Sourcepub fn child_body_size(&self) -> usize
pub fn child_body_size(&self) -> usize
Return the size of the child type, according to the vector’s body header.
Sourcepub fn child_body_type(&self) -> URID
pub fn child_body_type(&self) -> URID
Return the type of the child, according to the vector’s body header.
Trait Implementations§
Source§impl<T> AtomBody for Vector<T>
impl<T> AtomBody for Vector<T>
Source§type InitializationParameter = ()
type InitializationParameter = ()
The type of the parameter for
initialize_body Read moreSource§unsafe fn initialize_body<'a, W>(
writer: &mut W,
_: &(),
urids: &mut CachedMap,
) -> Result<(), ()>where
W: WritingFrame<'a> + WritingFrameExt<'a, Self>,
unsafe fn initialize_body<'a, W>(
writer: &mut W,
_: &(),
urids: &mut CachedMap,
) -> Result<(), ()>where
W: WritingFrame<'a> + WritingFrameExt<'a, Self>,
Write out a basic but valid atom body. Read more