pub struct LinearAct<T> {
_marker: PhantomData<fn() -> T>,
}Fields§
§_marker: PhantomData<fn() -> T>Trait Implementations§
Source§impl<T> MonoidAct for LinearAct<T>
impl<T> MonoidAct for LinearAct<T>
type Key = T
type Act = (T, T)
type ActMonoid = LinearOperation<T>
fn act(x: &Self::Key, (a, b): &Self::Act) -> Self::Key
fn act_assign(x: &mut Self::Key, a: &Self::Act)
fn unit() -> Self::Act
fn operate(x: &Self::Act, y: &Self::Act) -> Self::Act
fn operate_assign(x: &mut Self::Act, y: &Self::Act)
Auto Trait Implementations§
impl<T> Freeze for LinearAct<T>
impl<T> RefUnwindSafe for LinearAct<T>
impl<T> Send for LinearAct<T>
impl<T> Sync for LinearAct<T>
impl<T> Unpin for LinearAct<T>
impl<T> UnwindSafe for LinearAct<T>
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