pub struct Product<T> {
pub left: T,
pub right: T,
pub product: Option<T>,
}Expand description
A categorical product of two objects.
This is a simplified representation for educational purposes.
Fields§
§left: TFirst factor
right: TSecond factor
product: Option<T>The product object (if it exists)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Product<T>where
T: Freeze,
impl<T> RefUnwindSafe for Product<T>where
T: RefUnwindSafe,
impl<T> Send for Product<T>where
T: Send,
impl<T> Sync for Product<T>where
T: Sync,
impl<T> Unpin for Product<T>where
T: Unpin,
impl<T> UnwindSafe for Product<T>where
T: 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