Trait lexical_write_float::WriteOptions

source ·
pub trait WriteOptions: Default {
    // Required methods
    fn is_valid(&self) -> bool;
    fn buffer_size<T, const FORMAT: u128>(&self) -> usize
       where T: FormattedSize;
}
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, const FORMAT: u128>(&self) -> usize
where T: FormattedSize,

Get an upper bound on the buffer size.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WriteOptions for Options

source§

fn is_valid(&self) -> bool

source§

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

Implementors§

source§

impl WriteOptions for lexical_write_float::Options