lexical_util::options

Trait WriteOptions

Source
pub trait WriteOptions: Default {
    // Required methods
    fn is_valid(&self) -> bool;
    fn buffer_size<T: FormattedSize, const FORMAT: u128>(&self) -> usize;
}
Expand description

Shared trait for all writer options.

Required Methods§

Source

fn is_valid(&self) -> bool

Determine if the options are valid.

Source

fn buffer_size<T: FormattedSize, const FORMAT: u128>(&self) -> usize

Get an upper bound on the buffer size.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§