Trait glib::PropertyGet

source ·
pub trait PropertyGet {
    type Value;

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

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

Required Associated Types§

Required Methods§

source

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

Implementations on Foreign Types§

source§

impl<T> PropertyGet for RefCell<T>

§

type Value = T

source§

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

source§

impl PropertyGet for AtomicI8

§

type Value = i8

source§

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

source§

impl PropertyGet for AtomicU64

§

type Value = u64

source§

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

source§

impl<T> PropertyGet for OnceCell<T>

§

type Value = T

source§

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

source§

impl<T> PropertyGet for RwLock<T>

§

type Value = T

source§

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

source§

impl PropertyGet for AtomicI64

§

type Value = i64

source§

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

source§

impl<T> PropertyGet for Mutex<T>

§

type Value = T

source§

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

source§

impl PropertyGet for AtomicU32

§

type Value = u32

source§

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

source§

impl PropertyGet for AtomicBool

§

type Value = bool

source§

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

source§

impl PropertyGet for AtomicU8

§

type Value = u8

source§

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

source§

impl PropertyGet for AtomicI32

§

type Value = i32

source§

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

source§

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

§

type Value = T

source§

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

source§

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

§

type Value = <T as PropertyGet>::Value

source§

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

source§

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

§

type Value = <T as PropertyGet>::Value

source§

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

source§

impl<T> PropertyGet for OnceCell<T>

§

type Value = T

source§

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

Implementors§