Struct lattice_qcd_rs::simulation::monte_carlo::hybrid::AdaptorMethodError
source · 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<AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>> 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<AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>> 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
This method 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> StructuralEq 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> 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: ?Sized, State, ErrorBase, Error, const D: usize> RefUnwindSafe for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where Error: RefUnwindSafe, ErrorBase: RefUnwindSafe, MC: RefUnwindSafe, State: RefUnwindSafe,
impl<'a, MC: ?Sized, State, ErrorBase, Error, const D: usize> Send for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where Error: Sync, ErrorBase: Sync, MC: Send, State: Sync,
impl<'a, MC: ?Sized, State, ErrorBase, Error, const D: usize> Sync for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>where Error: Sync, ErrorBase: Sync, MC: Sync, State: Sync,
impl<'a, MC: ?Sized, State, ErrorBase, Error, const D: usize> Unpin for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>
impl<'a, MC, State, ErrorBase, Error, const D: usize> !UnwindSafe for AdaptorMethodError<'a, MC, State, ErrorBase, Error, D>
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.