Type Definition type_level_values::const_wrapper::PhantomWrapper[][src]

type PhantomWrapper<Compiletime> = ConstWrapper<Compiletime, PhantomKind>;

A ConstWrapper alias,used for compile-time values, which implements many traits.
Some impls for this are on ConstWrapper<Compiletime,PhantomKind>.

Construction

When constructing a PhantomWrapper inside a function that returns it prefer using PhantomWrapper::NEW.

When constructing a PhantomWrapper whose type can't be inferred use Type::PW or ::PW.

When there is a value that needs to be converted to a PhantomWrapper either use value.to_pw() or value.into() (if the type is Copy and the target type is PhantomWrapper<_>),

Methods

impl<T> PhantomWrapper<T>
[src]

Trait Implementations

impl<'de, T> Deserialize<'de> for PhantomWrapper<T>
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<T> Serialize for PhantomWrapper<T>
[src]

Serialize this value into the given Serde serializer. Read more

impl<T> Eq for PhantomWrapper<T>
[src]

impl<T> PartialEq for PhantomWrapper<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Ord for PhantomWrapper<T>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T> PartialOrd for PhantomWrapper<T>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T, R> IntoRuntime<R> for PhantomWrapper<T> where
    T: IntoRuntime<R>, 
[src]

Gets the runtime equivalent of this ConstValue.

Gets the runtime equivalent of this ConstValue.

Gets the runtime equivalent of this ConstValue.

Gets the runtime equivalent of this ConstValue.

impl<T, Runtime, Field> GetFieldRuntime_<Field, Runtime> for PhantomWrapper<T> where
    T: GetFieldRuntime_<Field, Runtime>, 
[src]

The type of the runtime equivalent of Field.

Returns the runtime value of the field.

Returns a VariantPhantom wrapping the type of the runtime equivalent of Field.

impl<F, Params> CallRef<Params> for PhantomWrapper<F> where
    F: TypeFn_<Params>,
    F::Output: ConstValue
[src]

calls this function

impl<F, Params> CallMut<Params> for PhantomWrapper<F> where
    F: TypeFn_<Params>,
    F::Output: ConstValue
[src]

calls this function

impl<F, Params> CallInto<Params> for PhantomWrapper<F> where
    F: TypeFn_<Params>,
    F::Output: ConstValue
[src]

The return type of this function

calls this function

impl<T, Field> Index<Field> for PhantomWrapper<T> where
    T: GetField_<Field>, 
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.