Type Definition type_level_values::const_wrapper::AsRuntime [−][src]
type AsRuntime<Compiletime, Runtime> = ConstWrapper<Compiletime, RuntimeKind<Runtime>>;
A ConstWrapper type for compile-time values which implements many traits using the runtime type.
Methods
impl<T, R> AsRuntime<T, R>
[src]
impl<T, R> AsRuntime<T, R>
pub fn get_runt(self) -> R where
T: IntoRuntime<R>,
[src]
pub fn get_runt(self) -> R where
T: IntoRuntime<R>,
Trait Implementations
impl<T, R> Eq for AsRuntime<T, R> where
Self: PartialEq<Self>,
[src]
impl<T, R> Eq for AsRuntime<T, R> where
Self: PartialEq<Self>,
impl<T1, T2, R1, R2> PartialEq<AsRuntime<T2, R2>> for AsRuntime<T1, R1> where
T1: IntoRuntime<R1>,
T2: IntoRuntime<R2>,
R1: PartialEq<R2>,
[src]
impl<T1, T2, R1, R2> PartialEq<AsRuntime<T2, R2>> for AsRuntime<T1, R1> where
T1: IntoRuntime<R1>,
T2: IntoRuntime<R2>,
R1: PartialEq<R2>,
fn eq(&self, _: &AsRuntime<T2, R2>) -> bool
[src]
fn eq(&self, _: &AsRuntime<T2, R2>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<T, R> Ord for AsRuntime<T, R> where
T: IntoRuntime<R>,
R: Ord,
[src]
impl<T, R> Ord for AsRuntime<T, R> where
T: IntoRuntime<R>,
R: Ord,
fn cmp(&self, _: &Self) -> Ordering
[src]
fn cmp(&self, _: &Self) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<T1, T2, R1, R2> PartialOrd<AsRuntime<T2, R2>> for AsRuntime<T1, R1> where
T1: IntoRuntime<R1>,
T2: IntoRuntime<R2>,
R1: PartialOrd<R2>,
[src]
impl<T1, T2, R1, R2> PartialOrd<AsRuntime<T2, R2>> for AsRuntime<T1, R1> where
T1: IntoRuntime<R1>,
T2: IntoRuntime<R2>,
R1: PartialOrd<R2>,
fn partial_cmp(&self, _: &AsRuntime<T2, R2>) -> Option<Ordering>
[src]
fn partial_cmp(&self, _: &AsRuntime<T2, R2>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
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 AsRuntime<T, R> where
T: IntoRuntime<R>,
[src]
impl<T, R> IntoRuntime<R> for AsRuntime<T, R> where
T: IntoRuntime<R>,
fn to_runtime() -> R
[src]
fn to_runtime() -> R
Gets the runtime equivalent of this ConstValue.
fn to_runtime_ty(_: VariantPhantom<To>) -> To
[src]
fn to_runtime_ty(_: VariantPhantom<To>) -> To
Gets the runtime equivalent of this ConstValue.
fn into_runtime(&self) -> To
[src]
fn into_runtime(&self) -> To
Gets the runtime equivalent of this ConstValue.
fn into_runtime_ty(&self, _: VariantPhantom<To>) -> To
[src]
fn into_runtime_ty(&self, _: VariantPhantom<To>) -> To
Gets the runtime equivalent of this ConstValue.
impl<T, Runtime, Field> GetFieldRuntime_<Field, Runtime> for AsRuntime<T, Runtime> where
T: GetFieldRuntime_<Field, Runtime>,
[src]
impl<T, Runtime, Field> GetFieldRuntime_<Field, Runtime> for AsRuntime<T, Runtime> where
T: GetFieldRuntime_<Field, Runtime>,
type Runtime = T::Runtime
The type of the runtime equivalent of Field
.
fn get_val() -> Self::Runtime where
GetField<Self, Field>: IntoRuntime<Self::Runtime>,
[src]
fn get_val() -> Self::Runtime where
GetField<Self, Field>: IntoRuntime<Self::Runtime>,
Returns the runtime value of the field.
fn runtime_field_ty(
self,
_: Field,
_: VariantPhantom<RuntimeType>
) -> VariantPhantom<Self::Runtime>
[src]
fn runtime_field_ty(
self,
_: Field,
_: VariantPhantom<RuntimeType>
) -> VariantPhantom<Self::Runtime>
Returns a VariantPhantom wrapping the type of the runtime equivalent of Field
.
impl<F, FR, Params> CallRef<Params> for AsRuntime<F, FR> where
F: IntoRuntime<FR>,
FR: CallRef<Params>,
[src]
impl<F, FR, Params> CallRef<Params> for AsRuntime<F, FR> where
F: IntoRuntime<FR>,
FR: CallRef<Params>,
impl<F, FR, Params> CallMut<Params> for AsRuntime<F, FR> where
F: IntoRuntime<FR>,
FR: CallMut<Params>,
[src]
impl<F, FR, Params> CallMut<Params> for AsRuntime<F, FR> where
F: IntoRuntime<FR>,
FR: CallMut<Params>,
impl<F, FR, Params> CallInto<Params> for AsRuntime<F, FR> where
F: IntoRuntime<FR>,
FR: CallInto<Params>,
[src]
impl<F, FR, Params> CallInto<Params> for AsRuntime<F, FR> where
F: IntoRuntime<FR>,
FR: CallInto<Params>,
type Returns = FR::Returns
The return type of this function
fn call_into(self, params: Params) -> FR::Returns
[src]
fn call_into(self, params: Params) -> FR::Returns
calls this function
impl<T, R, Field> Index<Field> for AsRuntime<T, R> where
T: GetField_<Field>,
T: GetFieldRuntime_<Field, R>,
[src]
impl<T, R, Field> Index<Field> for AsRuntime<T, R> where
T: GetField_<Field>,
T: GetFieldRuntime_<Field, R>,