pub struct SerializerConfig {
pub bits: u8,
pub pos: usize,
pub discriminator: Option<u8>,
/* private fields */
}Fields§
§bits: u8§pos: usize§discriminator: Option<u8>Implementations§
Source§impl SerializerConfig
impl SerializerConfig
pub fn new() -> Self
pub fn next_reset_bits_pos(&self) -> usize
pub fn reset_bits(&mut self, is_read: bool)
pub fn set_toggle(&mut self, key: &str, value: bool)
pub fn set_length(&mut self, key: &str, value: usize)
pub fn set_variant(&mut self, key: &str, value: u8)
pub fn get_toggle(&self, key: &str) -> Option<bool>
pub fn get_length(&self, key: &str) -> Option<usize>
pub fn get_variant(&self, key: &str) -> Option<u8>
pub fn reset(&mut self)
Trait Implementations§
Source§impl Clone for SerializerConfig
impl Clone for SerializerConfig
Source§fn clone(&self) -> SerializerConfig
fn clone(&self) -> SerializerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SerializerConfig
impl RefUnwindSafe for SerializerConfig
impl Send for SerializerConfig
impl Sync for SerializerConfig
impl Unpin for SerializerConfig
impl UnwindSafe for SerializerConfig
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