Struct ProvenanceMismatch
pub struct ProvenanceMismatch {
pub rungs: usize,
pub parameters: usize,
}Expand description
A ladder attached to a curve it does not describe.
Unreachable through From<Calibrated>, which builds curve and ladder from
one solve. It exists for PinnedCurve::with_provenance, the seam that
attaches a ladder obtained elsewhere — where the two can disagree, and where
saying so early beats an out-of-bounds read at flip time.
Fields§
§rungs: usizeRungs the ladder carries.
parameters: usizeParameters the curve carries, by the flat walk a risk entry’s
node_index counts within.
Trait Implementations§
§impl Clone for ProvenanceMismatch
impl Clone for ProvenanceMismatch
§fn clone(&self) -> ProvenanceMismatch
fn clone(&self) -> ProvenanceMismatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProvenanceMismatch
§impl Debug for ProvenanceMismatch
impl Debug for ProvenanceMismatch
§impl Display for ProvenanceMismatch
impl Display for ProvenanceMismatch
impl Eq for ProvenanceMismatch
§impl Error for ProvenanceMismatch
impl Error for ProvenanceMismatch
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()
§impl PartialEq for ProvenanceMismatch
impl PartialEq for ProvenanceMismatch
§fn eq(&self, other: &ProvenanceMismatch) -> bool
fn eq(&self, other: &ProvenanceMismatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProvenanceMismatch
Auto Trait Implementations§
impl Freeze for ProvenanceMismatch
impl RefUnwindSafe for ProvenanceMismatch
impl Send for ProvenanceMismatch
impl Sync for ProvenanceMismatch
impl Unpin for ProvenanceMismatch
impl UnsafeUnpin for ProvenanceMismatch
impl UnwindSafe for ProvenanceMismatch
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