Struct yatlv::FrameBuilder[][src]

pub struct FrameBuilder<'a> { /* fields omitted */ }
Expand description

FrameBuilder can be used to push a frame into a mutable Vec<u8>

For usage details see FrameBuilderLike.

use yatlv::FrameBuilder;
let mut data = Vec::with_capacity(100);
{
    FrameBuilder::new(&mut data);
}
assert_eq!(&[
    1,         // frame-format
    0, 0, 0, 0 // field-count
], &data[..]);

Implementations

Trait Implementations

Executes the destructor for this type. Read more

Add a slice of data as a field to the frame. Read more

Create a new child frame builder. Read more

👎 Deprecated

Add a bool flied to the frame. Read more

Add a u8 field to the frame. Read more

Add a u16 field to the frame. Read more

Add a u32 field to the frame. Read more

Add a u64 field to the frame. Read more

Add a str field to the frame. Read more

Add a uuid field to the frame. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.