pub struct Sigma<A, B> {
pub fst: A,
pub snd: B,
}Expand description
A dependent pair (sigma type) Σ (a : A), B(a).
At the Rust meta-level, B is represented as a plain type B rather
than a type family, but conceptually this encodes dependent pairs.
Fields§
§fst: AThe first component (the “witness”).
snd: BThe second component (the “proof” or dependent value).
Implementations§
Source§impl<A, B> Sigma<A, B>
impl<A, B> Sigma<A, B>
Trait Implementations§
impl<A: Eq, B: Eq> Eq for Sigma<A, B>
impl<A, B> StructuralPartialEq for Sigma<A, B>
Auto Trait Implementations§
impl<A, B> Freeze for Sigma<A, B>
impl<A, B> RefUnwindSafe for Sigma<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Sigma<A, B>
impl<A, B> Sync for Sigma<A, B>
impl<A, B> Unpin for Sigma<A, B>
impl<A, B> UnsafeUnpin for Sigma<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Sigma<A, B>where
A: UnwindSafe,
B: 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