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§impl Debug for Refutation
impl Debug for Refutation
Source§impl PartialEq for Refutation
impl PartialEq for Refutation
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