Struct chain_core::abor::Encoder
pub struct Encoder {
data: Vec<u8, Global>,
hole: Vec<(usize, usize), Global>,
current_element: usize,
}
Expand description
ABOR Encoder
Fields§
§data: Vec<u8, Global>
§hole: Vec<(usize, usize), Global>
§current_element: usize
Implementations§
§impl Encoder
impl Encoder
pub fn new() -> Encoder
pub fn struct_start(self) -> Encoder
pub fn struct_start(self) -> Encoder
Array cannot contain more than 256 elements
pub fn struct_end(self) -> Encoder
pub fn struct_end(self) -> Encoder
Terminate an array
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more