pub struct AppendId<M>(pub M);Expand description
単位元を追加したモノイド
Tuple Fields§
§0: MTrait Implementations§
Source§impl<M: BinaryOp> BinaryOp for AppendId<M>
impl<M: BinaryOp> BinaryOp for AppendId<M>
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$)をする。
impl<M: Associative> Associative for AppendId<M>
impl<M: Commutative> Commutative for AppendId<M>
impl<M: Idempotence> Idempotence for AppendId<M>
Auto Trait Implementations§
impl<M> Freeze for AppendId<M>where
M: Freeze,
impl<M> RefUnwindSafe for AppendId<M>where
M: RefUnwindSafe,
impl<M> Send for AppendId<M>where
M: Send,
impl<M> Sync for AppendId<M>where
M: Sync,
impl<M> Unpin for AppendId<M>where
M: Unpin,
impl<M> UnwindSafe for AppendId<M>where
M: 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