Skip to main content

PrintWithSizeAndVocabulary

Trait PrintWithSizeAndVocabulary 

Source
pub trait PrintWithSizeAndVocabulary<V> {
    // Required method
    fn fmt_with_size_and(
        &self,
        vocabulary: &V,
        f: &mut Formatter<'_>,
        options: &Options,
        indent: usize,
        sizes: &[Size],
        index: &mut usize,
    ) -> Result;
}
Expand description

Values printable through a vocabulary, given the size of what surrounds them.

Required Methods§

Source

fn fmt_with_size_and( &self, vocabulary: &V, f: &mut Formatter<'_>, options: &Options, indent: usize, sizes: &[Size], index: &mut usize, ) -> Result

Prints this value through the given vocabulary and layout options.

§Errors

Returns an error when the underlying formatter does.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§