Skip to main content

Stat

Trait Stat 

Source
pub trait Stat:
    Debug
    + Clone
    + PartialEq
    + Default {
    type Split: DeserializeOwned;
    type TryFromSplitError;

    // Required method
    fn from_splits(
        splits: impl Iterator<Item = Self::Split>,
    ) -> Result<Self, Self::TryFromSplitError>
       where Self: Sized;
}

Required Associated Types§

Required Methods§

Source

fn from_splits( splits: impl Iterator<Item = Self::Split>, ) -> Result<Self, Self::TryFromSplitError>
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: Debug + DeserializeOwned + PartialEq + Clone> Stat for Vec<T>

Source§

type Split = T

Source§

type TryFromSplitError = Infallible

Source§

fn from_splits( splits: impl Iterator<Item = Self::Split>, ) -> Result<Self, Self::TryFromSplitError>
where Self: Sized,

Source§

impl<T: Stat> Stat for Option<T>

Source§

type Split = <T as Stat>::Split

Source§

type TryFromSplitError = Infallible

Source§

fn from_splits( splits: impl Iterator<Item = Self::Split>, ) -> Result<Self, Self::TryFromSplitError>
where Self: Sized,

Implementors§