Trait zng_var::IntoValue

source ·
pub trait IntoValue<T: VarValue>: Into<T> { }
Expand description

A property value that is not a variable but can be inspected.

§Implementing

The trait is only auto-implemented for T: Into<T> + VarValue, unfortunately actual type conversions must be manually implemented, note that the impl_from_and_into_var! macro auto-implements this conversion.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoValue<Cow<'static, str>> for Txt

source§

impl IntoValue<Option<Orientation2D>> for Orientation2D

source§

impl IntoValue<Option<bool>> for bool

source§

impl IntoValue<Option<char>> for char

source§

impl IntoValue<Option<f32>> for f32

source§

impl IntoValue<Option<f64>> for f64

source§

impl IntoValue<Option<i8>> for i8

source§

impl IntoValue<Option<i16>> for i16

source§

impl IntoValue<Option<i32>> for i32

source§

impl IntoValue<Option<i64>> for i64

source§

impl IntoValue<Option<i128>> for i128

source§

impl IntoValue<Option<isize>> for isize

source§

impl IntoValue<Option<u8>> for u8

source§

impl IntoValue<Option<u16>> for u16

source§

impl IntoValue<Option<u32>> for u32

source§

impl IntoValue<Option<u64>> for u64

source§

impl IntoValue<Option<u128>> for u128

source§

impl IntoValue<Option<usize>> for usize

source§

impl IntoValue<Deadline> for DInstant

source§

impl IntoValue<Deadline> for Duration

source§

impl IntoValue<Txt> for &'static str

source§

impl IntoValue<Txt> for Cow<'static, str>

source§

impl IntoValue<Txt> for char

source§

impl IntoValue<Txt> for String

source§

impl IntoValue<AngleDegree> for AngleGradian

source§

impl IntoValue<AngleDegree> for AngleRadian

source§

impl IntoValue<AngleDegree> for AngleTurn

source§

impl IntoValue<AngleGradian> for AngleDegree

source§

impl IntoValue<AngleGradian> for AngleRadian

source§

impl IntoValue<AngleGradian> for AngleTurn

source§

impl IntoValue<AngleRadian> for AngleDegree

source§

impl IntoValue<AngleRadian> for AngleGradian

source§

impl IntoValue<AngleRadian> for AngleTurn

source§

impl IntoValue<AngleTurn> for AngleDegree

source§

impl IntoValue<AngleTurn> for AngleGradian

source§

impl IntoValue<AngleTurn> for AngleRadian

source§

impl IntoValue<ByteLength> for usize

source§

impl IntoValue<Factor> for bool

source§

impl IntoValue<Factor> for f32

source§

impl IntoValue<Factor> for FactorPercent

source§

impl IntoValue<FactorPercent> for Factor

source§

impl IntoValue<EasingTime> for Factor

source§

impl IntoValue<String> for Txt

source§

impl IntoValue<PathBuf> for Txt

Implementors§

source§

impl<T: VarValue> IntoValue<T> for T