#[repr(C)]pub struct VectorHeader {
pub child_size: c_uint,
pub child_type: c_uint,
}Expand description
The body header of a vector.
It contains the size of the child type (which has to be static) and the child type itself.
This struct is also repr(C) and is used to interpret raw atom data.
Fields§
§child_size: c_uint§child_type: c_uintTrait Implementations§
Source§impl ArrayAtomHeader for VectorHeader
impl ArrayAtomHeader for VectorHeader
Source§type InitializationParameter = u32
type InitializationParameter = u32
Type of the parameter for
initialize.Source§unsafe fn initialize<'a, W, T>(
writer: &mut W,
child_type: &URID,
_urids: &mut CachedMap,
) -> Result<(), ()>where
T: 'static + Sized + Copy,
ArrayAtomBody<Self, T>: AtomBody,
W: WritingFrame<'a> + WritingFrameExt<'a, ArrayAtomBody<Self, T>>,
unsafe fn initialize<'a, W, T>(
writer: &mut W,
child_type: &URID,
_urids: &mut CachedMap,
) -> Result<(), ()>where
T: 'static + Sized + Copy,
ArrayAtomBody<Self, T>: AtomBody,
W: WritingFrame<'a> + WritingFrameExt<'a, ArrayAtomBody<Self, T>>,
Write out the array atom header. Read more
Auto Trait Implementations§
impl Freeze for VectorHeader
impl RefUnwindSafe for VectorHeader
impl Send for VectorHeader
impl Sync for VectorHeader
impl Unpin for VectorHeader
impl UnwindSafe for VectorHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more