pub trait ConvertToSize {
    fn convert(&self) -> Result<usize, ()>;
}
Expand description

A type conversion into usize that might fail. Like TryInto<usize>, but does not consume self. The parser needs this trait to support formats whose width or precision use “dollar syntax”. For more information about these, see std::fmt.

Required methods

Tries perform the conversion.

Implementors