Atom

Trait Atom 

Source
pub trait Atom:
    Clone
    + Copy
    + PartialOrd
    + Ord
    + PartialEq
    + Eq
    + Default {
    const MIN: Self;
    const MAX: Self;
    const EPSILON: Self;

    // Required methods
    fn previous(&self) -> Option<Self>;
    fn next(&self) -> Option<Self>;
}

Required Associated Constants§

Source

const MIN: Self

Source

const MAX: Self

Source

const EPSILON: Self

Required Methods§

Source

fn previous(&self) -> Option<Self>

Source

fn next(&self) -> Option<Self>

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.

Implementations on Foreign Types§

Source§

impl Atom for char

Source§

const MIN: Self = '\u{1}'

Source§

const MAX: Self = '\u{10ffff}'

Source§

const EPSILON: Self = '\0'

Source§

fn previous(&self) -> Option<Self>

Source§

fn next(&self) -> Option<Self>

Implementors§