Skip to main content

SerialAlphabet

Trait SerialAlphabet 

Source
pub trait SerialAlphabet:
    Clone
    + Eq
    + Debug {
    type Symbol: Clone + Eq + Ord + Debug;

    // Required methods
    fn id(&self) -> &AlphabetId;
    fn symbols(&self) -> &[Self::Symbol];
}
Expand description

A finite, ordered vocabulary used by a crate::Series.

Required Associated Types§

Source

type Symbol: Clone + Eq + Ord + Debug

Symbol value retained in a series order.

Required Methods§

Source

fn id(&self) -> &AlphabetId

Stable alphabet identity.

Source

fn symbols(&self) -> &[Self::Symbol]

Symbols in canonical alphabet order.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<S> SerialAlphabet for FiniteAlphabet<S>
where S: Clone + Eq + Ord + Debug,