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
Add a slice of data as a field to the frame. Read more
Create a new child frame builder. Read more
Add a str field to the frame. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for FrameBuilder<'a>
impl<'a> Send for FrameBuilder<'a>
impl<'a> Sync for FrameBuilder<'a>
impl<'a> Unpin for FrameBuilder<'a>
impl<'a> !UnwindSafe for FrameBuilder<'a>