Seeded

Trait Seeded 

Source
pub trait Seeded: Sized {
    type Seed: Copy;

    const DEFAULT_SEED: Self::Seed;

    // Required method
    fn from_seed(seed: &Self::Seed) -> Self;
}
Expand description

Construct a fresh transcoding target from compact seed/config state.

Required Associated Constants§

Source

const DEFAULT_SEED: Self::Seed

Default configuration for Self.

Required Associated Types§

Source

type Seed: Copy

The configuration required to construct Self.

Required Methods§

Source

fn from_seed(seed: &Self::Seed) -> Self

Construct a fresh transcoding target from the provided seed.

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 Seeded for ()

Source§

const DEFAULT_SEED: Self::Seed = ()

Source§

type Seed = ()

Source§

fn from_seed(_: &Self::Seed) -> Self

Source§

impl<T, const N: usize> Seeded for Vec<T, N>

Available on crate feature heapless only.
Source§

const DEFAULT_SEED: Self::Seed = ()

Source§

type Seed = ()

Source§

fn from_seed(_: &Self::Seed) -> Self

Implementors§

Source§

impl Seeded for Packed

Source§

const DEFAULT_SEED: Self::Seed = ()

Source§

type Seed = ()

Source§

impl<T: Default> Seeded for Indices<T>

Source§

const DEFAULT_SEED: Self::Seed = ()

Source§

type Seed = ()

Source§

impl<T: Default> Seeded for JsonPath<T>

Source§

const DEFAULT_SEED: Self::Seed = ()

Source§

type Seed = ()

Source§

impl<T: Default> Seeded for Path<T>

Source§

const DEFAULT_SEED: Self::Seed = '/'

Source§

type Seed = char

Source§

impl<T: Default, const S: char> Seeded for ConstPath<T, S>

Source§

const DEFAULT_SEED: Self::Seed = ()

Source§

type Seed = ()

Source§

impl<T: Seeded> Seeded for Short<T>

Source§

const DEFAULT_SEED: Self::Seed = T::DEFAULT_SEED

Source§

type Seed = <T as Seeded>::Seed

Source§

impl<T: Seeded> Seeded for Track<T>

Source§

const DEFAULT_SEED: Self::Seed = T::DEFAULT_SEED

Source§

type Seed = <T as Seeded>::Seed