Skip to main content

State

Trait State 

Source
pub trait State: Sealed {
    type Repo;
    type Rev1;
    type Rev2;
}
Expand description

State trait tracking which required fields have been set

Required Associated Types§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl State for Empty

Source§

impl<S: State> State for SetRepo<S>

Source§

type Repo = Set<repo>

Source§

type Rev1 = <S as State>::Rev1

Source§

type Rev2 = <S as State>::Rev2

Source§

impl<S: State> State for SetRev1<S>

Source§

type Repo = <S as State>::Repo

Source§

type Rev1 = Set<rev1>

Source§

type Rev2 = <S as State>::Rev2

Source§

impl<S: State> State for SetRev2<S>

Source§

type Repo = <S as State>::Repo

Source§

type Rev1 = <S as State>::Rev1

Source§

type Rev2 = Set<rev2>