pub trait FormattedValue: Copy + Clone + Sized + Into<GenericFormattedValue> + 'static {
    type FullRange: FormattedValueFullRange + From<Self>;

    // Required methods
    fn default_format() -> Format;
    fn format(&self) -> Format;
    fn is_some(&self) -> bool;
    unsafe fn into_raw_value(self) -> i64;

    // Provided method
    fn is_none(&self) -> bool { ... }
}

Required Associated Types§

source

type FullRange: FormattedValueFullRange + From<Self>

Type which allows building a FormattedValue of this format from any raw value.

Required Methods§

source

fn default_format() -> Format

source

fn format(&self) -> Format

source

fn is_some(&self) -> bool

Returns true if this FormattedValue represents a defined value.

source

unsafe fn into_raw_value(self) -> i64

Provided Methods§

source

fn is_none(&self) -> bool

Returns true if this FormattedValue represents an undefined value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FormattedValue for Option<Buffers>

source§

impl FormattedValue for Option<Bytes>

source§

impl FormattedValue for Option<ClockTime>

source§

impl FormattedValue for Option<Default>

source§

impl FormattedValue for Option<Percent>

Implementors§