Trait vizia_core::binding::ResGet

source ·
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§

source

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

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ResGet<bool> for bool

source§

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

source§

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

source§

impl ResGet<char> for char

source§

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

source§

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

source§

impl ResGet<f32> for f32

source§

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

source§

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

source§

impl ResGet<f64> for f64

source§

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

source§

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

source§

impl ResGet<i8> for i8

source§

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

source§

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

source§

impl ResGet<i16> for i16

source§

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

source§

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

source§

impl ResGet<i32> for i32

source§

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

source§

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

source§

impl ResGet<i64> for i64

source§

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

source§

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

source§

impl ResGet<i128> for i128

source§

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

source§

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

source§

impl ResGet<isize> for isize

source§

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

source§

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

source§

impl ResGet<u8> for u8

source§

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

source§

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

source§

impl ResGet<u16> for u16

source§

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

source§

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

source§

impl ResGet<u32> for u32

source§

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

source§

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

source§

impl ResGet<u64> for u64

source§

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

source§

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

source§

impl ResGet<u128> for u128

source§

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

source§

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

source§

impl ResGet<usize> for usize

source§

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

source§

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

source§

impl ResGet<String> for String

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§

source§

impl ResGet<LayoutType> for LayoutType

source§

impl ResGet<PositionType> for PositionType

source§

impl ResGet<Units> for Units

source§

impl ResGet<Angle> for Angle

source§

impl ResGet<Color> for Color

source§

impl ResGet<CornerShape> for CornerShape

source§

impl ResGet<CursorIcon> for CursorIcon

source§

impl ResGet<Display> for Display

source§

impl ResGet<FamilyOwned> for FamilyOwned

source§

impl ResGet<Filter> for Filter

source§

impl ResGet<FontSlant> for FontSlant

source§

impl ResGet<FontWeightKeyword> for FontWeightKeyword

source§

impl ResGet<FontWidth> for FontWidth

source§

impl ResGet<Length> for Length

source§

impl ResGet<LengthOrPercentage> for LengthOrPercentage

source§

impl ResGet<LengthValue> for LengthValue

source§

impl ResGet<Overflow> for Overflow

source§

impl ResGet<PointerEvents> for PointerEvents

source§

impl ResGet<TextAlign> for TextAlign

source§

impl ResGet<TextOverflow> for TextOverflow

source§

impl ResGet<Transform> for Transform

source§

impl ResGet<Visibility> for Visibility

source§

impl ResGet<AvatarVariant> for AvatarVariant

source§

impl ResGet<ButtonVariant> for ButtonVariant

source§

impl ResGet<ChipVariant> for ChipVariant

source§

impl ResGet<Placement> for Placement

source§

impl ResGet<Selectable> for Selectable

source§

impl ResGet<SpinboxIcons> for SpinboxIcons

source§

impl ResGet<LinearGradientBuilder> for LinearGradientBuilder

source§

impl ResGet<ShadowBuilder> for ShadowBuilder

source§

impl ResGet<FontVariation> for FontVariation

source§

impl ResGet<FontWeight> for FontWeight

source§

impl ResGet<LineClamp> for LineClamp

source§

impl ResGet<LinearGradient> for LinearGradient

source§

impl ResGet<Opacity> for Opacity

source§

impl ResGet<Position> for Position

source§

impl ResGet<RGBA> for RGBA

source§

impl ResGet<Scale> for Scale

source§

impl ResGet<Shadow> for Shadow

source§

impl ResGet<TextDecorationLine> for TextDecorationLine

source§

impl ResGet<Translate> for Translate

source§

impl ResGet<String> for Localized

source§

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

source§

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

source§

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