pub_just::ordinal

Trait Ordinal

Source
pub trait Ordinal {
    // Required method
    fn ordinal(self) -> Self;
}

Required Methods§

Source

fn ordinal(self) -> Self

Convert an index starting at 0 to an ordinal starting at 1

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 Ordinal for usize

Source§

fn ordinal(self) -> Self

Implementors§