Struct comonoid::Comonoidal
[−]
[src]
pub struct Comonoidal<T>(_);
A newtype wrapper to make a comonoid out of any cloneable type.
Trait Implementations
impl<T> From<T> for Comonoidal<T>
[src]
fn from(a: T) -> Comonoidal<T>
Performs the conversion.
impl<T> AsRef<T> for Comonoidal<T>
[src]
fn as_ref(&self) -> &T
Performs the conversion.
impl<T> AsMut<T> for Comonoidal<T>
[src]
fn as_mut(&mut self) -> &mut T
Performs the conversion.
impl<T> Clone for Comonoidal<T> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T> Comonoid for Comonoidal<T> where
T: Clone,
[src]
T: Clone,