vizia::binding

Trait ResGet

pub trait ResGet<T> {
    // Required methods
    fn get_ref<'a>(
        &'a self,
        cx: &'a impl DataContext,
    ) -> Option<LensValue<'a, T>>;
    fn get(&self, _: &impl DataContext) -> T;
}

Required Methods§

fn get_ref<'a>(&'a self, cx: &'a impl DataContext) -> Option<LensValue<'a, T>>

fn get(&self, _: &impl DataContext) -> T

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl ResGet<bool> for bool

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, bool>>

§

fn get(&self, _: &impl DataContext) -> bool

§

impl ResGet<char> for char

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, char>>

§

fn get(&self, _: &impl DataContext) -> char

§

impl ResGet<f32> for f32

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, f32>>

§

fn get(&self, _: &impl DataContext) -> f32

§

impl ResGet<f64> for f64

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, f64>>

§

fn get(&self, _: &impl DataContext) -> f64

§

impl ResGet<i8> for i8

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, i8>>

§

fn get(&self, _: &impl DataContext) -> i8

§

impl ResGet<i16> for i16

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, i16>>

§

fn get(&self, _: &impl DataContext) -> i16

§

impl ResGet<i32> for i32

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, i32>>

§

fn get(&self, _: &impl DataContext) -> i32

§

impl ResGet<i64> for i64

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, i64>>

§

fn get(&self, _: &impl DataContext) -> i64

§

impl ResGet<i128> for i128

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, i128>>

§

fn get(&self, _: &impl DataContext) -> i128

§

impl ResGet<isize> for isize

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, isize>>

§

fn get(&self, _: &impl DataContext) -> isize

§

impl ResGet<u8> for u8

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, u8>>

§

fn get(&self, _: &impl DataContext) -> u8

§

impl ResGet<u16> for u16

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, u16>>

§

fn get(&self, _: &impl DataContext) -> u16

§

impl ResGet<u32> for u32

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, u32>>

§

fn get(&self, _: &impl DataContext) -> u32

§

impl ResGet<u64> for u64

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, u64>>

§

fn get(&self, _: &impl DataContext) -> u64

§

impl ResGet<u128> for u128

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, u128>>

§

fn get(&self, _: &impl DataContext) -> u128

§

impl ResGet<usize> for usize

§

fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, usize>>

§

fn get(&self, _: &impl DataContext) -> usize

§

impl ResGet<String> for String

§

fn get_ref<'a>( &'a self, _: &'a impl DataContext, ) -> Option<LensValue<'a, String>>

§

fn get(&self, _: &impl DataContext) -> String

§

impl<'s> ResGet<&'s str> for &'s str

§

fn get_ref<'a>( &'a self, _: &'a impl DataContext, ) -> Option<LensValue<'a, &'s str>>

§

fn get(&self, _: &impl DataContext) -> &'s str

§

impl<'s> ResGet<&'s String> for &'s String

§

fn get_ref<'a>( &'a self, _: &'a impl DataContext, ) -> Option<LensValue<'a, &'s String>>

§

fn get(&self, _: &impl DataContext) -> &'s String

§

impl<T1, T2> ResGet<(T1, T2)> for (T1, T2)
where T1: Clone, T2: Clone,

§

fn get_ref<'a>( &'a self, _: &'a impl DataContext, ) -> Option<LensValue<'a, (T1, T2)>>

§

fn get(&self, _cx: &impl DataContext) -> (T1, T2)

§

impl<T1, T2, T3> ResGet<(T1, T2, T3)> for (T1, T2, T3)
where T1: Clone, T2: Clone, T3: Clone,

§

fn get_ref<'a>( &'a self, _: &'a impl DataContext, ) -> Option<LensValue<'a, (T1, T2, T3)>>

§

fn get(&self, _cx: &impl DataContext) -> (T1, T2, T3)

§

impl<T1, T2, T3, T4> ResGet<(T1, T2, T3, T4)> for (T1, T2, T3, T4)
where T1: Clone, T2: Clone, T3: Clone, T4: Clone,

§

fn get_ref<'a>( &'a self, _: &'a impl DataContext, ) -> Option<LensValue<'a, (T1, T2, T3, T4)>>

§

fn get(&self, _cx: &impl DataContext) -> (T1, T2, T3, T4)

§

impl<T> ResGet<Option<T>> for Option<T>
where T: Clone + ResGet<T>,

§

fn get_ref<'a>( &'a self, _: &'a impl DataContext, ) -> Option<LensValue<'a, Option<T>>>

§

fn get(&self, _: &impl DataContext) -> Option<T>

§

impl<T> ResGet<Vec<T>> for Vec<T>
where T: Clone + ResGet<T>,

§

fn get_ref<'a>( &'a self, _: &'a impl DataContext, ) -> Option<LensValue<'a, Vec<T>>>

§

fn get(&self, _: &impl DataContext) -> Vec<T>

§

impl<T, const N: usize> ResGet<[T; N]> for [T; N]
where T: Clone + ResGet<T>,

§

fn get_ref<'a>( &'a self, _: &'a impl DataContext, ) -> Option<LensValue<'a, [T; N]>>

§

fn get(&self, _: &impl DataContext) -> [T; N]

Implementors§

§

impl ResGet<LayoutType> for LayoutType

§

impl ResGet<PositionType> for PositionType

§

impl ResGet<Units> for Units

§

impl ResGet<Angle> for Angle

§

impl ResGet<Color> for Color

§

impl ResGet<CornerShape> for CornerShape

§

impl ResGet<CursorIcon> for CursorIcon

§

impl ResGet<Display> for Display

§

impl ResGet<FamilyOwned> for FamilyOwned

§

impl ResGet<Filter> for Filter

§

impl ResGet<FontSlant> for FontSlant

§

impl ResGet<FontWeightKeyword> for FontWeightKeyword

§

impl ResGet<FontWidth> for FontWidth

§

impl ResGet<Length> for Length

§

impl ResGet<LengthOrPercentage> for LengthOrPercentage

§

impl ResGet<LengthValue> for LengthValue

§

impl ResGet<Overflow> for Overflow

§

impl ResGet<PointerEvents> for PointerEvents

§

impl ResGet<TextAlign> for TextAlign

§

impl ResGet<TextOverflow> for TextOverflow

§

impl ResGet<Transform> for Transform

§

impl ResGet<Visibility> for Visibility

§

impl ResGet<AvatarVariant> for AvatarVariant

§

impl ResGet<ButtonVariant> for ButtonVariant

§

impl ResGet<ChipVariant> for ChipVariant

§

impl ResGet<Placement> for Placement

§

impl ResGet<Selectable> for Selectable

§

impl ResGet<SpinboxIcons> for SpinboxIcons

§

impl ResGet<LinearGradientBuilder> for LinearGradientBuilder

§

impl ResGet<ShadowBuilder> for ShadowBuilder

§

impl ResGet<FontVariation> for FontVariation

§

impl ResGet<FontWeight> for FontWeight

§

impl ResGet<LineClamp> for LineClamp

§

impl ResGet<LinearGradient> for LinearGradient

§

impl ResGet<Opacity> for Opacity

§

impl ResGet<Position> for Position

§

impl ResGet<RGBA> for RGBA

§

impl ResGet<Scale> for Scale

§

impl ResGet<Shadow> for Shadow

§

impl ResGet<TextDecorationLine> for TextDecorationLine

§

impl ResGet<Translate> for Translate

§

impl ResGet<String> for Localized

§

impl<'i> ResGet<BackgroundImage<'i>> for BackgroundImage<'i>

§

impl<'i> ResGet<FontFamily<'i>> for FontFamily<'i>

§

impl<L> ResGet<<L as Lens>::Target> for L
where L: Lens, <L as Lens>::Target: Clone,