Trait fmap::Identity

source ·
pub trait Identity<T>: Sized + Reflect<This = T> {
    // Required methods
    fn from_same(this: T) -> Self;
    fn into_same(self) -> T;
}
Expand description

Trait Identity<T> is implemented for all T: Sized and allows conversion between Self and T

Required Methods§

source

fn from_same(this: T) -> Self

Convert from T into Self (no-op)

source

fn into_same(self) -> T

Convert from Self into T (no-op)

Implementors§

source§

impl<T> Identity<T> for Twhere T: Reflect<This = T>,