glib::property

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

Required Associated Types§

Required Methods§

Source

fn get<R, F: Fn(&Self::Value) -> R>(&self, f: F) -> 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§

Source§

impl PropertyGet for AtomicBool

Source§

type Value = bool

Source§

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

Source§

impl PropertyGet for AtomicI8

Source§

type Value = i8

Source§

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

Source§

impl PropertyGet for AtomicI32

Source§

type Value = i32

Source§

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

Source§

impl PropertyGet for AtomicI64

Source§

type Value = i64

Source§

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

Source§

impl PropertyGet for AtomicU8

Source§

type Value = u8

Source§

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

Source§

impl PropertyGet for AtomicU32

Source§

type Value = u32

Source§

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

Source§

impl PropertyGet for AtomicU64

Source§

type Value = u64

Source§

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

Source§

impl<T> PropertyGet for OnceCell<T>

Source§

type Value = T

Source§

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

Source§

impl<T> PropertyGet for RefCell<T>

Source§

type Value = T

Source§

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

Source§

impl<T> PropertyGet for Mutex<T>

Source§

type Value = T

Source§

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

Source§

impl<T> PropertyGet for OnceLock<T>

Source§

type Value = T

Source§

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

Source§

impl<T> PropertyGet for RwLock<T>

Source§

type Value = T

Source§

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

Source§

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

Source§

type Value = T

Source§

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

Source§

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

Source§

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>

Source§

type Value = <T as PropertyGet>::Value

Source§

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

Implementors§