pub struct AdaptorMethodError<'a, MC, State, ErrorBase, Error, const D: usize>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized,
ErrorBase: Into<Error>,
State: LatticeState<D>,{ /* private fields */ }Expand description
Adaptor used to convert the error to another type. It is intended to use with HybridMethodVec.
Implementations§
Source§impl<'a, MC, State, ErrorBase, Error, const D: usize> AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized,
ErrorBase: Into<Error>,
State: LatticeState<D>,
impl<'a, MC, State, ErrorBase, Error, const D: usize> AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized,
ErrorBase: Into<Error>,
State: LatticeState<D>,
Trait Implementations§
Source§impl<'a, MC, State, ErrorBase, Error, const D: usize> AsMut<MC> for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized,
ErrorBase: Into<Error>,
State: LatticeState<D>,
impl<'a, MC, State, ErrorBase, Error, const D: usize> AsMut<MC> for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized,
ErrorBase: Into<Error>,
State: LatticeState<D>,
Source§impl<'a, MC, State, ErrorBase, Error, const D: usize> AsRef<MC> for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized,
ErrorBase: Into<Error>,
State: LatticeState<D>,
impl<'a, MC, State, ErrorBase, Error, const D: usize> AsRef<MC> for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized,
ErrorBase: Into<Error>,
State: LatticeState<D>,
Source§impl<'a, MC, State, ErrorBase, Error: Debug, const D: usize> Debug for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized + Debug,
ErrorBase: Into<Error> + Debug,
State: LatticeState<D> + Debug,
impl<'a, MC, State, ErrorBase, Error: Debug, const D: usize> Debug for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized + Debug,
ErrorBase: Into<Error> + Debug,
State: LatticeState<D> + Debug,
Source§impl<'a, MC, State, ErrorBase, Error, const D: usize> MonteCarlo<State, D> for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized,
ErrorBase: Into<Error>,
State: LatticeState<D>,
impl<'a, MC, State, ErrorBase, Error, const D: usize> MonteCarlo<State, D> for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized,
ErrorBase: Into<Error>,
State: LatticeState<D>,
Source§impl<'a, MC, State, ErrorBase, Error: PartialEq, const D: usize> PartialEq for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized + PartialEq,
ErrorBase: Into<Error> + PartialEq,
State: LatticeState<D> + PartialEq,
impl<'a, MC, State, ErrorBase, Error: PartialEq, const D: usize> PartialEq for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized + PartialEq,
ErrorBase: Into<Error> + PartialEq,
State: LatticeState<D> + PartialEq,
Source§fn eq(
&self,
other: &AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>,
) -> bool
fn eq( &self, other: &AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>, ) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a, MC, State, ErrorBase, Error: Eq, const D: usize> Eq for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized + Eq,
ErrorBase: Into<Error> + Eq,
State: LatticeState<D> + Eq,
impl<'a, MC, State, ErrorBase, Error, const D: usize> StructuralPartialEq for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: MonteCarlo<State, D, Error = ErrorBase> + ?Sized,
ErrorBase: Into<Error>,
State: LatticeState<D>,
Auto Trait Implementations§
impl<'a, MC, State, ErrorBase, Error, const D: usize> Freeze for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: ?Sized,
impl<'a, MC, State, ErrorBase, Error, const D: usize> RefUnwindSafe for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: RefUnwindSafe + ?Sized,
State: RefUnwindSafe,
ErrorBase: RefUnwindSafe,
Error: RefUnwindSafe,
impl<'a, MC, State, ErrorBase, Error, const D: usize> Send for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>
impl<'a, MC, State, ErrorBase, Error, const D: usize> Sync for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>
impl<'a, MC, State, ErrorBase, Error, const D: usize> Unpin for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where
MC: ?Sized,
impl<'a, MC, State, ErrorBase, Error, const D: usize> !UnwindSafe for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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.