pub struct OrPanic<K = AsSelf>(/* private fields */);Expand description
Divergence that breaks on errors by panicking.
OrPanic panics if a Constrained cannot be constructed. This behavior is independent
of the output kind, so even an OrPanic divergence with a Result output type panics if an
error occurs.
By default, OrPanic uses the AsSelf output kind.
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for OrPanic<K>
impl<K> RefUnwindSafe for OrPanic<K>
impl<K> Send for OrPanic<K>
impl<K> Sync for OrPanic<K>
impl<K> Unpin for OrPanic<K>
impl<K> UnwindSafe for OrPanic<K>
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