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
impl Object
Sourcepub fn iter<'a>(
&'a self,
) -> impl Iterator<Item = (&'a PropertyHeader, &'a Atom)>
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
impl AtomBody for Object
Source§type InitializationParameter = (u32, u32)
type InitializationParameter = (u32, u32)
The type of the parameter for
initialize_body Read moreSource§unsafe fn initialize_body<'a, W>(
writer: &mut W,
(id, otype): &(URID, URID),
urids: &mut CachedMap,
) -> Result<(), ()>where
W: WritingFrame<'a> + WritingFrameExt<'a, Self>,
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