glib::property

Trait PropertySetNested

Source
pub trait PropertySetNested {
    type SetNestedValue;

    // Required method
    fn set_nested<F: FnOnce(&mut Self::SetNestedValue)>(&self, f: F);
}
Expand description

A container type implementing this trait can be written by the default setter generated by the Properties macro. It takes a FnOnce(&mut Self::Value) so that the caller may access nested fields of a struct by doing ${Self::Value}.member

Required Associated Types§

Required Methods§

Source

fn set_nested<F: FnOnce(&mut Self::SetNestedValue)>(&self, f: F)

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<T> PropertySetNested for RefCell<T>

Source§

type SetNestedValue = T

Source§

fn set_nested<F: FnOnce(&mut Self::SetNestedValue)>(&self, f: F)

Source§

impl<T> PropertySetNested for Mutex<T>

Source§

type SetNestedValue = T

Source§

fn set_nested<F: FnOnce(&mut Self::SetNestedValue)>(&self, f: F)

Source§

impl<T> PropertySetNested for RwLock<T>

Source§

type SetNestedValue = T

Source§

fn set_nested<F: FnOnce(&mut Self::SetNestedValue)>(&self, f: F)

Source§

impl<T: PropertySetNested> PropertySetNested for Rc<T>

Source§

impl<T: PropertySetNested> PropertySetNested for Arc<T>

Implementors§