Trait PropertySetNested

pub trait PropertySetNested {
    type SetNestedValue;

    // Required method
    fn set_nested<F>(&self, f: F)
       where F: FnOnce(&mut Self::SetNestedValue);
}
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§

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

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

§

impl<T> PropertySetNested for Arc<T>

§

impl<T> PropertySetNested for RefCell<T>

§

type SetNestedValue = T

§

fn set_nested<F>(&self, f: F)

§

impl<T> PropertySetNested for Mutex<T>

§

type SetNestedValue = T

§

fn set_nested<F>(&self, f: F)
where F: FnOnce(&mut <Mutex<T> as PropertySetNested>::SetNestedValue),

§

impl<T> PropertySetNested for RwLock<T>

§

type SetNestedValue = T

§

fn set_nested<F>(&self, f: F)

Implementors§