[][src]Struct lv2rs_atom::frame::NestedFrame

pub struct NestedFrame<'a, 'b, A: ?Sized> where
    A: AtomBody
{ /* fields omitted */ }

A writing frame managing nested atoms.

Unlike the RootFrame, which really manages memory, this frame only forwards writing calls to the next frame in the hierarchy and updates the atom header accordingly. Additionally, this frame will assure for padding when dropped. These padding bytes will not be included in the top level header, only in the surrounding ones.

Nested frames can only be created with the create_nested_frame method.

Trait Implementations

impl<'a, 'b, A: ?Sized> WritingFrame<'b> for NestedFrame<'a, 'b, A> where
    A: AtomBody
[src]

impl<'a, 'b, A: AtomBody + ?Sized> WritingFrameExt<'b, A> for NestedFrame<'a, 'b, A>[src]

unsafe fn write_sized<T: Sized>(&mut self, object: &T) -> Result<&'a mut T, ()>[src]

Try to write a sized object into the atom space. Read more

unsafe fn create_nested_frame<'b, C: AtomBody + ?Sized>(
    &'b mut self,
    urids: &mut CachedMap
) -> Result<NestedFrame<'b, 'a, C>, ()>
[src]

Create a new atom header and return a nested writing frame for it. Read more

unsafe fn get_atom_body<'b>(
    &'b self,
    urids: &mut CachedMap
) -> Result<&'b A, GetBodyError>
[src]

Try to get a reference to the body from our atom header. Read more

impl<'a, 'b, A: ?Sized> Drop for NestedFrame<'a, 'b, A> where
    A: AtomBody
[src]

Auto Trait Implementations

impl<'a, 'b, A> !Send for NestedFrame<'a, 'b, A>

impl<'a, 'b, A> !Sync for NestedFrame<'a, 'b, A>

Blanket Implementations

impl<'a, W> LiteralWritingFrame for W where
    W: WritingFrame<'a> + WritingFrameExt<'a, ArrayAtomBody<LiteralHeader, u8>>, 
[src]

fn append_string(&mut self, string: &str) -> Result<(), ()>[src]

Append a string to the literal. Read more

impl<'a, W> ObjectWritingFrame for W where
    W: WritingFrame<'a> + WritingFrameExt<'a, ArrayAtomBody<ObjectHeader, u8>>, 
[src]

fn push_property<'b, A: AtomBody + ?Sized>(
    &'b mut self,
    key: URID,
    context: URID,
    parameter: &A::InitializationParameter,
    urids: &mut CachedMap
) -> Result<NestedFrame<'b, 'a, A>, ()>
[src]

Add a property to the object. Read more

impl<'a, W> SequenceWritingFrame for W where
    W: WritingFrame<'a> + WritingFrameExt<'a, ArrayAtomBody<SequenceHeader, u8>>, 
[src]

fn push_event<'b, A: AtomBody + ?Sized>(
    &'b mut self,
    time: TimeStamp,
    parameter: &A::InitializationParameter,
    urids: &mut CachedMap
) -> Result<NestedFrame<'b, 'a, A>, ()>
[src]

impl<'a, W> TupleWritingFrame for W where
    W: WritingFrame<'a> + WritingFrameExt<'a, ArrayAtomBody<(), u8>>, 
[src]

fn push_atom<'b, A: AtomBody + ?Sized>(
    &'b mut self,
    parameter: &A::InitializationParameter,
    urids: &mut CachedMap
) -> Result<NestedFrame<'b, 'a, A>, ()>
[src]

Add a new atom to the tuple. Read more

impl<'a, T, F> VectorWritingFrame for F where
    F: WritingFrame<'a> + WritingFrameExt<'a, ArrayAtomBody<VectorHeader, T>>,
    T: 'static + AtomBody + Copy
[src]

fn push(&mut self, value: T) -> Result<(), ()>[src]

Push a value to the end of the vector.

fn append(&mut self, slice: &[T]) -> Result<(), ()>[src]

Append a slice of values to the end of the vector.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.