pub struct And<P, Q>(/* private fields */);Expand description
Both properties P and Q hold simultaneously.
Use Proven::and() to combine two witnesses into Proven<And<P, Q>, T>,
then derive() to extract either constituent via the Implies impls.
Note: Due to Rust’s coherence rules, only Implies<P> (the first
component) is provided as a blanket impl. To extract Q, use the
dedicated Proven<And<P, Q>, T>::derive_second() method.
Trait Implementations§
Auto Trait Implementations§
impl<P, Q> Freeze for And<P, Q>
impl<P, Q> RefUnwindSafe for And<P, Q>where
P: RefUnwindSafe,
Q: RefUnwindSafe,
impl<P, Q> Send for And<P, Q>
impl<P, Q> Sync for And<P, Q>
impl<P, Q> Unpin for And<P, Q>
impl<P, Q> UnsafeUnpin for And<P, Q>
impl<P, Q> UnwindSafe for And<P, Q>where
P: UnwindSafe,
Q: UnwindSafe,
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