pub struct AdtSerializer<'a, 'b, Output, const V: usize>where
Output: BinaryOutput,{ /* private fields */ }Implementations§
Source§impl<'a, 'b, Output, const V: usize> AdtSerializer<'a, 'b, Output, V>where
Output: BinaryOutput,
impl<'a, 'b, Output, const V: usize> AdtSerializer<'a, 'b, Output, V>where
Output: BinaryOutput,
pub fn new_v0( metadata: &'a AdtMetadata, context: &'b mut SerializationContext<Output>, ) -> AdtSerializer<'a, 'b, Output, V>
pub fn new( metadata: &'a AdtMetadata, context: &'b mut SerializationContext<Output>, ) -> AdtSerializer<'a, 'b, Output, V>
pub fn write_field<T>(
&mut self,
field_name: &str,
value: &T,
) -> Result<(), Error>where
T: BinarySerializer,
pub fn finish(self) -> Result<(), Error>
pub fn write_constructor( &mut self, constructor_idx: u32, serialize_case: impl FnOnce(&mut SerializationContext<Output>) -> Result<(), Error>, ) -> Result<(), Error>
Auto Trait Implementations§
impl<'a, 'b, Output, const V: usize> !RefUnwindSafe for AdtSerializer<'a, 'b, Output, V>
impl<'a, 'b, Output, const V: usize> !Send for AdtSerializer<'a, 'b, Output, V>
impl<'a, 'b, Output, const V: usize> !Sync for AdtSerializer<'a, 'b, Output, V>
impl<'a, 'b, Output, const V: usize> !UnwindSafe for AdtSerializer<'a, 'b, Output, V>
impl<'a, 'b, Output, const V: usize> Freeze for AdtSerializer<'a, 'b, Output, V>
impl<'a, 'b, Output, const V: usize> Unpin for AdtSerializer<'a, 'b, Output, V>
impl<'a, 'b, Output, const V: usize> UnsafeUnpin for AdtSerializer<'a, 'b, Output, V>where
&'b mut SerializationContext<Output>: UnsafeUnpin,
Option<[Option<Vec<u8>>; V]>: UnsafeUnpin,
Option<[i8; V]>: UnsafeUnpin,
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