Skip to main content

Measured

Trait Measured 

Source
pub trait Measured {
    const TEXT: bool;

    // Required method
    fn size(&self) -> Option<i64>;

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

Required Associated Constants§

Required Methods§

Source

fn size(&self) -> Option<i64>

Provided Methods§

Source

fn is_blank(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Measured for String

Source§

const TEXT: bool = true

Source§

fn size(&self) -> Option<i64>

Source§

fn is_blank(&self) -> bool

Source§

impl Measured for i8

Source§

const TEXT: bool = false

Source§

fn size(&self) -> Option<i64>

Source§

impl Measured for i16

Source§

const TEXT: bool = false

Source§

fn size(&self) -> Option<i64>

Source§

impl Measured for i32

Source§

const TEXT: bool = false

Source§

fn size(&self) -> Option<i64>

Source§

impl Measured for i64

Source§

const TEXT: bool = false

Source§

fn size(&self) -> Option<i64>

Source§

impl Measured for u8

Source§

const TEXT: bool = false

Source§

fn size(&self) -> Option<i64>

Source§

impl Measured for u16

Source§

const TEXT: bool = false

Source§

fn size(&self) -> Option<i64>

Source§

impl Measured for u32

Source§

const TEXT: bool = false

Source§

fn size(&self) -> Option<i64>

Source§

impl<T: Measured> Measured for Option<T>

Source§

const TEXT: bool = T::TEXT

Source§

fn size(&self) -> Option<i64>

Source§

fn is_blank(&self) -> bool

Implementors§

Source§

impl<V: Value<Inner: Measured>> Measured for V

Source§

const TEXT: bool = <V::Inner>::TEXT