pub trait NominalSystem<T>
where T: Nominal,
{ // Required method fn try_format_nominal(&self, nominal: T) -> Result<NominalString, Error<T>>; // Provided method fn format_nominal(&self, nominal: T) -> NominalString { ... } }
Expand description

A system of ordered nominal identifiers.

Required Methods§

source

fn try_format_nominal(&self, nominal: T) -> Result<NominalString, Error<T>>

Tries to format nominal using this system.

Errors

Each nominal system can use its own error type. The crate-level error type is Error, and each variant describes why formatting a nominal may fail.

Provided Methods§

source

fn format_nominal(&self, nominal: T) -> NominalString

Formats nominal using this system.

Trait Implementations§

source§

impl<T> NominalSystem<T> for Box<dyn NominalSystem<T>>
where T: Nominal,

Available on crate feature alloc only.
source§

fn try_format_nominal(&self, nominal: T) -> Result<NominalString, Error<T>>

Tries to format nominal using this system. Read more
source§

fn format_nominal(&self, nominal: T) -> NominalString

Formats nominal using this system.

Implementations on Foreign Types§

source§

impl<T> NominalSystem<T> for Box<dyn NominalSystem<T>>
where T: Nominal,

Available on crate feature alloc only.
source§

impl<T> NominalSystem<T> for Rc<dyn NominalSystem<T>>
where T: Nominal,

Available on crate feature alloc only.
source§

impl<T> NominalSystem<T> for Arc<dyn NominalSystem<T>>
where T: Nominal,

Available on crate feature alloc only.

Implementors§

source§

impl<T> NominalSystem<T> for ArmenianLower
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for ArmenianUpper
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for Ethiopic
where T: Nominal,

source§

impl<T> NominalSystem<T> for Georgian
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for HangeulFormal
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for HanjaFormal
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for HanjaInformal
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for Hebrew

source§

impl<T> NominalSystem<T> for JapaneseFormal
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for JapaneseInformal
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for RomanLower
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for RomanUpper
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for SimplifiedChineseFormal
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for SimplifiedChineseInformal
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for TraditionalChineseFormal
where T: Nominal + TryFrom<u128>,

source§

impl<T> NominalSystem<T> for TraditionalChineseInformal
where T: Nominal + TryFrom<u128>,

source§

impl<T, D> NominalSystem<T> for D

source§

impl<const N: usize, T> NominalSystem<T> for AdditiveSet<N>
where T: Nominal + TryFrom<u128>,