pub struct StatesCallback<CI, T>where
CI: Hash,{ /* private fields */ }Implementations§
Source§impl<CI, T> StatesCallback<CI, T>where
CI: Hash,
impl<CI, T> StatesCallback<CI, T>where
CI: Hash,
pub fn new(trivial_state: T) -> Self
pub fn set_non_trivial_lookup(&mut self, lookup: HashMap<CI, T>)
pub fn clone_read_only(&self) -> StatesReadOnly<CI, T>where
T: Clone,
Trait Implementations§
Auto Trait Implementations§
impl<CI, T> Freeze for StatesCallback<CI, T>where
T: Freeze,
impl<CI, T> RefUnwindSafe for StatesCallback<CI, T>where
T: RefUnwindSafe,
impl<CI, T> Send for StatesCallback<CI, T>
impl<CI, T> Sync for StatesCallback<CI, T>
impl<CI, T> Unpin for StatesCallback<CI, T>where
T: Unpin,
impl<CI, T> UnwindSafe for StatesCallback<CI, T>where
T: 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more