pub struct Encoder { /* private fields */ }Expand description
Writes one record’s fields; strings go to the record’s table.
Implementations§
Source§impl Encoder
impl Encoder
pub fn u64(&mut self, value: u64)
pub fn u32(&mut self, value: u32)
pub fn usize(&mut self, value: usize)
pub fn bool(&mut self, value: bool)
pub fn byte(&mut self, value: u8)
pub fn str(&mut self, value: &str)
Sourcepub fn opt_str(&mut self, value: Option<&str>)
pub fn opt_str(&mut self, value: Option<&str>)
An optional string: 0 for none, otherwise its index plus one.
pub fn strs(&mut self, values: &[String])
Trait Implementations§
Auto Trait Implementations§
impl Forget for Encoder
impl Freeze for Encoder
impl Move for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnsafeUnpin 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