pub struct Dual<S>(pub S);Expand description
演算の順序を逆にした代数的構造
Tuple Fields§
§0: STrait Implementations§
Source§impl<S: BinaryOp> BinaryOp for Dual<S>
impl<S: BinaryOp> BinaryOp for Dual<S>
Source§fn op_assign_r(&self, a: &mut Self::Element, b: Self::Element)
fn op_assign_r(&self, a: &mut Self::Element, b: Self::Element)
二項演算$\circ$で(右側から)代入操作($a \leftarrow a \circ b$)をする。
Source§impl<S: Ord> Ord for Dual<S>
impl<S: Ord> Ord for Dual<S>
Source§impl<S: PartialOrd> PartialOrd for Dual<S>
impl<S: PartialOrd> PartialOrd for Dual<S>
impl<S: Associative> Associative for Dual<S>
impl<S: Commutative> Commutative for Dual<S>
impl<S: Copy> Copy for Dual<S>
impl<S: Eq> Eq for Dual<S>
impl<S: Idempotence> Idempotence for Dual<S>
impl<S> StructuralPartialEq for Dual<S>
Auto Trait Implementations§
impl<S> Freeze for Dual<S>where
S: Freeze,
impl<S> RefUnwindSafe for Dual<S>where
S: RefUnwindSafe,
impl<S> Send for Dual<S>where
S: Send,
impl<S> Sync for Dual<S>where
S: Sync,
impl<S> Unpin for Dual<S>where
S: Unpin,
impl<S> UnwindSafe for Dual<S>where
S: 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