Trait PropertyGet

pub trait PropertyGet {
    type Value;

    // Required method
    fn get<R, F>(&self, f: F) -> R
       where F: Fn(&Self::Value) -> R;
}
Expand description

A container type implementing this trait can be read by the default getter generated by the Properties macro.

Required Associated Types§

type Value

Required Methods§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&Self::Value) -> R,

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§

§

impl PropertyGet for AtomicBool

§

type Value = bool

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<AtomicBool as PropertyGet>::Value) -> R,

§

impl PropertyGet for AtomicI8

§

type Value = i8

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<AtomicI8 as PropertyGet>::Value) -> R,

§

impl PropertyGet for AtomicI32

§

type Value = i32

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<AtomicI32 as PropertyGet>::Value) -> R,

§

impl PropertyGet for AtomicI64

§

type Value = i64

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<AtomicI64 as PropertyGet>::Value) -> R,

§

impl PropertyGet for AtomicU8

§

type Value = u8

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<AtomicU8 as PropertyGet>::Value) -> R,

§

impl PropertyGet for AtomicU32

§

type Value = u32

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<AtomicU32 as PropertyGet>::Value) -> R,

§

impl PropertyGet for AtomicU64

§

type Value = u64

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<AtomicU64 as PropertyGet>::Value) -> R,

§

impl<T> PropertyGet for Rc<T>
where T: PropertyGet,

§

type Value = <T as PropertyGet>::Value

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<Rc<T> as PropertyGet>::Value) -> R,

§

impl<T> PropertyGet for Arc<T>
where T: PropertyGet,

§

type Value = <T as PropertyGet>::Value

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<Arc<T> as PropertyGet>::Value) -> R,

§

impl<T> PropertyGet for OnceCell<T>

§

type Value = T

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<OnceCell<T> as PropertyGet>::Value) -> R,

§

impl<T> PropertyGet for Cell<T>
where T: Copy,

§

type Value = T

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<Cell<T> as PropertyGet>::Value) -> R,

§

impl<T> PropertyGet for RefCell<T>

§

type Value = T

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<RefCell<T> as PropertyGet>::Value) -> R,

§

impl<T> PropertyGet for OnceLock<T>

§

type Value = T

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<OnceLock<T> as PropertyGet>::Value) -> R,

§

impl<T> PropertyGet for Mutex<T>

§

type Value = T

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<Mutex<T> as PropertyGet>::Value) -> R,

§

impl<T> PropertyGet for RwLock<T>

§

type Value = T

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<RwLock<T> as PropertyGet>::Value) -> R,

§

impl<T> PropertyGet for TemplateChild<T>

§

type Value = T

§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<TemplateChild<T> as PropertyGet>::Value) -> R,

Implementors§

§

impl<T> PropertyGet for SendWeakRef<T>
where T: IsA<Object>,

§

type Value = Option<T>

§

impl<T> PropertyGet for WeakRef<T>
where T: IsA<Object>,

§

type Value = Option<T>

§

impl<T> PropertyGet for T
where T: HasParamSpec,

§

type Value = T