cynic_parser::common

Trait IdOperations

Source
pub trait IdOperations: Copy {
    // Required methods
    fn empty_range() -> IdRange<Self>;
    fn forward(self) -> Option<Self>;
    fn back(self) -> Option<Self>;
    fn cmp(self, other: Self) -> Ordering;
    fn distance(lhs: Self, rhs: Self) -> usize;
}

Required Methods§

Source

fn empty_range() -> IdRange<Self>

Source

fn forward(self) -> Option<Self>

Source

fn back(self) -> Option<Self>

Source

fn cmp(self, other: Self) -> Ordering

Source

fn distance(lhs: Self, rhs: Self) -> usize

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.

Implementors§