pub struct SerializerConfig<T = ()>where
T: Clone,{
pub bits: u8,
pub pos: usize,
pub discriminator: Option<u8>,
pub data: Option<T>,
/* private fields */
}Fields§
§bits: u8§pos: usize§discriminator: Option<u8>§data: Option<T>Implementations§
Source§impl<T: Clone> SerializerConfig<T>
impl<T: Clone> SerializerConfig<T>
pub fn new(data: Option<T>) -> 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<T> Clone for SerializerConfig<T>
impl<T> Clone for SerializerConfig<T>
Source§fn clone(&self) -> SerializerConfig<T>
fn clone(&self) -> SerializerConfig<T>
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 moreSource§impl<T> Debug for SerializerConfig<T>
impl<T> Debug for SerializerConfig<T>
Auto Trait Implementations§
impl<T> Freeze for SerializerConfig<T>where
T: Freeze,
impl<T> RefUnwindSafe for SerializerConfig<T>where
T: RefUnwindSafe,
impl<T> Send for SerializerConfig<T>where
T: Send,
impl<T> Sync for SerializerConfig<T>where
T: Sync,
impl<T> Unpin for SerializerConfig<T>where
T: Unpin,
impl<T> UnwindSafe for SerializerConfig<T>where
T: UnwindSafe,
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