pub struct StateInto<ProjectedState> { /* private fields */ }Expand description
StateInto implements state subspace traits for state subspaces that can be mapped using Into
Implementations§
Trait Implementations§
Source§impl<State: Clone + Into<ProjectedState>, ProjectedState> ProjectState<State> for StateInto<ProjectedState>
impl<State: Clone + Into<ProjectedState>, ProjectedState> ProjectState<State> for StateInto<ProjectedState>
Source§impl<ProjectedState> StateSubspace for StateInto<ProjectedState>
impl<ProjectedState> StateSubspace for StateInto<ProjectedState>
type ProjectedState = ProjectedState
Auto Trait Implementations§
impl<ProjectedState> Freeze for StateInto<ProjectedState>
impl<ProjectedState> RefUnwindSafe for StateInto<ProjectedState>where
ProjectedState: RefUnwindSafe,
impl<ProjectedState> Send for StateInto<ProjectedState>where
ProjectedState: Send,
impl<ProjectedState> Sync for StateInto<ProjectedState>where
ProjectedState: Sync,
impl<ProjectedState> Unpin for StateInto<ProjectedState>where
ProjectedState: Unpin,
impl<ProjectedState> UnwindSafe for StateInto<ProjectedState>where
ProjectedState: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.