pub struct DisplayVisitor<'a, 'fmt, W> { /* private fields */ }Implementations§
Source§impl<'a, 'fmt, W> DisplayVisitor<'a, 'fmt, W>
impl<'a, 'fmt, W> DisplayVisitor<'a, 'fmt, W>
pub fn new(input: &'a mut &'a [u8], f: &'fmt mut W) -> Self
pub fn has_displayed_whole_input(&self) -> bool
Source§impl<W: Write> DisplayVisitor<'_, '_, W>
impl<W: Write> DisplayVisitor<'_, '_, W>
pub fn read_usize_borsh(&mut self) -> Result<usize, FormatError>
pub fn display_byte_sequence( &mut self, len: usize, display: ByteDisplay, _context: Context, ) -> Result<(), FormatError>
Trait Implementations§
Source§impl<W: Write, L: LinkingScheme, M> TypeVisitor<L, M> for DisplayVisitor<'_, '_, W>
impl<W: Write, L: LinkingScheme, M> TypeVisitor<L, M> for DisplayVisitor<'_, '_, W>
type Arg = Context
type ReturnType = Result<(), FormatError>
fn visit_enum( &mut self, e: &Enum<L>, schema: &impl TypeResolver<LinkingScheme = L>, context: Context, ) -> Self::ReturnType
fn visit_struct( &mut self, s: &Struct<L>, schema: &impl TypeResolver<LinkingScheme = L>, context: Context, ) -> Self::ReturnType
fn visit_tuple( &mut self, t: &Tuple<L>, schema: &impl TypeResolver<LinkingScheme = L>, context: Context, ) -> Self::ReturnType
fn visit_option( &mut self, value: &L::TypeLink, schema: &impl TypeResolver<LinkingScheme = L>, context: Self::Arg, ) -> Self::ReturnType
fn visit_primitive( &mut self, p: Primitive, _schema: &impl TypeResolver<LinkingScheme = L>, context: Context, ) -> Self::ReturnType
fn visit_array( &mut self, len: &usize, value: &L::TypeLink, schema: &impl TypeResolver<LinkingScheme = L>, context: Context, ) -> Self::ReturnType
fn visit_vec( &mut self, value: &L::TypeLink, schema: &impl TypeResolver<LinkingScheme = L>, context: Context, ) -> Self::ReturnType
fn visit_map( &mut self, key: &L::TypeLink, value: &L::TypeLink, schema: &impl TypeResolver<LinkingScheme = L>, context: Context, ) -> Self::ReturnType
Auto Trait Implementations§
impl<'a, 'fmt, W> Freeze for DisplayVisitor<'a, 'fmt, W>
impl<'a, 'fmt, W> RefUnwindSafe for DisplayVisitor<'a, 'fmt, W>where
W: RefUnwindSafe,
impl<'a, 'fmt, W> Send for DisplayVisitor<'a, 'fmt, W>where
W: Send,
impl<'a, 'fmt, W> Sync for DisplayVisitor<'a, 'fmt, W>where
W: Sync,
impl<'a, 'fmt, W> Unpin for DisplayVisitor<'a, 'fmt, W>
impl<'a, 'fmt, W> UnsafeUnpin for DisplayVisitor<'a, 'fmt, W>
impl<'a, 'fmt, W> !UnwindSafe for DisplayVisitor<'a, 'fmt, W>
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