pub enum TuningDiffError {
InvalidCurrent,
InvalidCandidate,
RulesMismatch {
current: u32,
candidate: u32,
},
}Expand description
Why a TuningProfile::diff could not produce a replacement preview.
Variants§
InvalidCurrent
The current profile fails TuningProfile::validated.
InvalidCandidate
The candidate profile fails TuningProfile::validated.
RulesMismatch
Both profiles are valid, but belong to different games/rulesets.
Trait Implementations§
Source§impl Clone for TuningDiffError
impl Clone for TuningDiffError
Source§fn clone(&self) -> TuningDiffError
fn clone(&self) -> TuningDiffError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TuningDiffError
impl Debug for TuningDiffError
Source§impl Display for TuningDiffError
impl Display for TuningDiffError
Source§impl Error for TuningDiffError
impl Error for TuningDiffError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for TuningDiffError
impl PartialEq for TuningDiffError
impl Copy for TuningDiffError
impl Eq for TuningDiffError
impl StructuralPartialEq for TuningDiffError
Auto Trait Implementations§
impl Freeze for TuningDiffError
impl RefUnwindSafe for TuningDiffError
impl Send for TuningDiffError
impl Sync for TuningDiffError
impl Unpin for TuningDiffError
impl UnwindSafe for TuningDiffError
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