pub struct Triple<A, B, C> {
pub fst: A,
pub snd: B,
pub thd: C,
}Expand description
A generic ordered triple.
Fields§
§fst: AFirst component.
snd: BSecond component.
thd: CThird component.
Implementations§
Source§impl<A, B, C> Triple<A, B, C>
impl<A, B, C> Triple<A, B, C>
Sourcepub fn from_tuple((a, b, c): (A, B, C)) -> Self
pub fn from_tuple((a, b, c): (A, B, C)) -> Self
Construct from a Rust 3-tuple.
Sourcepub fn into_tuple(self) -> (A, B, C)
pub fn into_tuple(self) -> (A, B, C)
Convert to a Rust 3-tuple.
Trait Implementations§
impl<A: Eq, B: Eq, C: Eq> Eq for Triple<A, B, C>
impl<A, B, C> StructuralPartialEq for Triple<A, B, C>
Auto Trait Implementations§
impl<A, B, C> Freeze for Triple<A, B, C>
impl<A, B, C> RefUnwindSafe for Triple<A, B, C>
impl<A, B, C> Send for Triple<A, B, C>
impl<A, B, C> Sync for Triple<A, B, C>
impl<A, B, C> Unpin for Triple<A, B, C>
impl<A, B, C> UnsafeUnpin for Triple<A, B, C>
impl<A, B, C> UnwindSafe for Triple<A, B, C>
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