Object

Type Alias Object 

Source
pub type Object = ArrayAtomBody<ObjectHeader, u8>;
Expand description

Object- or Map-style atom container.

See the module documentation for more information.

Aliased Type§

#[repr(C)]
pub struct Object { pub header: ObjectHeader, pub data: [u8], }

Fields§

§header: ObjectHeader§data: [u8]

Implementations§

Source§

impl Object

Source

pub fn iter<'a>( &'a self, ) -> impl Iterator<Item = (&'a PropertyHeader, &'a Atom)>

Create an iterator over all properties of the object.

This iterator is based on the ChunkIterator.

Trait Implementations§

Source§

impl AtomBody for Object

Source§

type InitializationParameter = (u32, u32)

The type of the parameter for initialize_body Read more
Source§

fn get_uri() -> &'static CStr

Return the URI of the atom type.
Source§

unsafe fn initialize_body<'a, W>( writer: &mut W, (id, otype): &(URID, URID), urids: &mut CachedMap, ) -> Result<(), ()>
where W: WritingFrame<'a> + WritingFrameExt<'a, Self>,

Write out a basic but valid atom body. Read more
Source§

fn create_ref<'a>(raw_body: &'a [u8]) -> Result<&'a Self, ()>

Try to create a Self reference from a slice of raw data. Read more