Struct identity::lift::Const [] [src]

pub struct Const<X: ?Sized> {
    // some fields omitted
}

Type-level K combinator.

Trait Implementations

impl<X: ?Sized> Debug for Const<X>
[src]

fn fmt(&self, fmtr: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<X: ?Sized> Clone for Const<X>
[src]

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<X: ?Sized> Copy for Const<X>
[src]

impl<X: ?Sized> Default for Const<X>
[src]

fn default() -> Self

Returns the "default value" for a type. Read more

impl<X: ?Sized> Hash for Const<X>
[src]

fn hash<H>(&self, state: &mut H) where H: Hasher

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl<Param: ?Sized, X: ?Sized> TyFun<Param> for Const<X>
[src]

type Result = X

impl<'param, X: ?Sized> LiFun<'param> for Const<X>
[src]

type Result = X