pub struct Refutation {
pub by: RefutedBy,
pub at: Option<CtxSpan>,
pub value: Value,
}Expand description
What refuted a value: the parameter or binding pattern a refutation
escaped, with its whole value, however deep inside it the refuting
pattern was; or a case or a __match none of whose arms matched.
Fields§
§by: RefutedBy§at: Option<CtxSpan>The pattern’s span, or the case’s subject’s. A __match has none:
it is the call the trace starts at.
value: ValueThe value refuted.
Trait Implementations§
Source§impl Clone for Refutation
impl Clone for Refutation
Source§fn clone(&self) -> Refutation
fn clone(&self) -> Refutation
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 moreSource§impl Debug for Refutation
impl Debug for Refutation
Source§impl PartialEq for Refutation
impl PartialEq for Refutation
Source§fn eq(&self, other: &Refutation) -> bool
fn eq(&self, other: &Refutation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Refutation
Auto Trait Implementations§
impl !RefUnwindSafe for Refutation
impl !Send for Refutation
impl !Sync for Refutation
impl !UnwindSafe for Refutation
impl Freeze for Refutation
impl Unpin for Refutation
impl UnsafeUnpin for Refutation
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