zng_var

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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

impl IntoValue<CommandScope> for &'static str

impl IntoValue<ZIndex> for u32

impl IntoValue<WidgetId> for &'static str

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

impl IntoValue<WindowId> for &'static str

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

impl IntoValue<Hsla> for Hsva

impl IntoValue<Hsla> for Rgba

impl IntoValue<Hsva> for Hsla

impl IntoValue<Hsva> for Rgba

impl IntoValue<Rgba> for Hsla

impl IntoValue<Rgba> for Hsva

impl<L: Into<Length> + Copy> IntoValue<GradientStops> for &[(Hsla, L)]

impl<L: Into<Length> + Copy> IntoValue<GradientStops> for &[(Hsva, L)]

impl<L: Into<Length> + Copy> IntoValue<GradientStops> for &[(Rgba, L)]

impl<L: Into<Length> + Copy, const N: usize> IntoValue<GradientStops> for &[(Hsla, L); N]

impl<L: Into<Length> + Copy, const N: usize> IntoValue<GradientStops> for &[(Hsva, L); N]

impl<L: Into<Length> + Copy, const N: usize> IntoValue<GradientStops> for &[(Rgba, L); N]

impl<L: Into<Length> + Copy, const N: usize> IntoValue<GradientStops> for [(Hsla, L); N]

impl<L: Into<Length> + Copy, const N: usize> IntoValue<GradientStops> for [(Hsva, L); N]

impl<L: Into<Length> + Copy, const N: usize> IntoValue<GradientStops> for [(Rgba, L); N]

impl<const N: usize> IntoValue<GradientStops> for &[Hsla; N]

impl<const N: usize> IntoValue<GradientStops> for &[Hsva; N]

impl<const N: usize> IntoValue<GradientStops> for &[Rgba; N]

impl<const N: usize> IntoValue<GradientStops> for [Hsla; N]

impl<const N: usize> IntoValue<GradientStops> for [Hsva; N]

impl<const N: usize> IntoValue<GradientStops> for [Rgba; N]

impl IntoValue<CategoryId> for &'static str

impl IntoValue<FontName> for &'static str

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

impl IntoValue<FontNames> for &'static str

impl IntoValue<FontNames> for Vec<&'static str>

impl IntoValue<ImageSource> for &'static [u8]

impl IntoValue<ImageSource> for (Uri, &'static str)

impl<F: Into<ImageDataFormat>> IntoValue<ImageSource> for (&'static [u8], F)

impl<F: Into<ImageDataFormat>, const N: usize> IntoValue<ImageSource> for (&'static [u8; N], F)

impl<const N: usize> IntoValue<ImageSource> for &'static [u8; N]

impl IntoValue<L10nArgument> for &'static str

impl IntoValue<L10nArgument> for FluentNumber

impl IntoValue<LangFilePath> for &'static str

impl IntoValue<Langs> for Lang

impl IntoValue<WindowIcon> for &'static [u8]

impl<F: Into<ImageDataFormat>> IntoValue<WindowIcon> for (&'static [u8], F)

impl<F: Into<ImageDataFormat>, const N: usize> IntoValue<WindowIcon> for (&'static [u8; N], F)

impl<const N: usize> IntoValue<WindowIcon> for &'static [u8; N]

impl IntoValue<Length> for f32

impl IntoValue<Length> for i32

impl IntoValue<Length> for Dip

impl IntoValue<Length> for Px

impl IntoValue<Point> for f32

impl IntoValue<Point> for i32

impl IntoValue<Ppi> for Ppm

impl IntoValue<Ppm> for Ppi

impl IntoValue<Rect> for Size

impl IntoValue<Size> for f32

impl IntoValue<Size> for i32

impl IntoValue<Size> for Rect

impl IntoValue<Vector> for f32

impl IntoValue<Vector> for i32

impl IntoValue<Vector> for Dip

impl IntoValue<Vector> for Px

impl<O: Into<Point>, S: Into<Size>> IntoValue<Rect> for (O, S)

impl<X: Into<Factor>, Y: Into<Factor>> IntoValue<Align> for (X, bool, Y)

impl IntoValue<Progress> for &'static str

impl IntoValue<DragDropData> for &'static str

impl IntoValue<FileDialogFilters> for &'static str

impl IntoValue<ImagePpi> for (f32, f32)

impl IntoValue<ScrollToTarget> for &'static str

impl<F: Fn(EasingTime) -> EasingStep + Send + Sync + 'static> IntoValue<SmoothScrolling> for (Duration, F)

impl<P: Into<Point>, O: Into<Point>> IntoValue<StackDirection> for (P, O, bool)

impl IntoValue<TextOverflow> for &'static str

impl IntoValue<GlyphSource> for &'static str