Trait StateRepr

Source
pub trait StateRepr {
    type Item: RawState;
}
Expand description

The StateRepr trait defines the base type for stateful items, allowing for a generic item type to be associated with the state.

Required Associated Types§

Implementations on Foreign Types§

Source§

impl<Q> StateRepr for Option<Q>
where Q: RawState,

Source§

type Item = Q

Source§

impl<Q> StateRepr for Box<Q>
where Q: RawState,

Source§

type Item = Q

Source§

impl<Q> StateRepr for Rc<Q>
where Q: RawState,

Source§

type Item = Q

Source§

impl<Q> StateRepr for Arc<Q>
where Q: RawState,

Source§

type Item = Q

Source§

impl<Q> StateRepr for Vec<Q>
where Q: RawState,

Source§

type Item = Q

Source§

impl<Q> StateRepr for Cell<Q>
where Q: RawState,

Source§

type Item = Q

Source§

impl<Q> StateRepr for PhantomData<Q>
where Q: RawState,

Source§

type Item = Q

Source§

impl<Q> StateRepr for Mutex<Q>
where Q: RawState,

Source§

type Item = Q

Source§

impl<Q> StateRepr for MaybeUninit<Q>
where Q: RawState,

Source§

type Item = Q

Implementors§

Source§

impl<Q> StateRepr for State<Q>
where Q: RawState,

Source§

type Item = Q

Source§

impl<Q, K> StateRepr for StateBase<Q, K>
where Q: RawState,

Source§

type Item = Q