pub struct WitnessDisplay<'a, M: Model> { /* private fields */ }Expand description
A witness printed with the model’s variant names. Returned by
Witness::display and WitnessRef::display.
§Examples
let report = check(&Opt, &0, &[Arm::new(Pat::variant(0, []))])?;
assert_eq!(format!("{}", report.missing()[0].display(&Opt)), "Some(_)");Trait Implementations§
Source§impl<M: Model> Debug for WitnessDisplay<'_, M>
impl<M: Model> Debug for WitnessDisplay<'_, M>
Auto Trait Implementations§
impl<'a, M> Freeze for WitnessDisplay<'a, M>
impl<'a, M> RefUnwindSafe for WitnessDisplay<'a, M>
impl<'a, M> Send for WitnessDisplay<'a, M>
impl<'a, M> Sync for WitnessDisplay<'a, M>
impl<'a, M> Unpin for WitnessDisplay<'a, M>
impl<'a, M> UnsafeUnpin for WitnessDisplay<'a, M>
impl<'a, M> UnwindSafe for WitnessDisplay<'a, M>
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