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 Props 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)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> PropertySetNested for RefCell<T>

§

type SetNestedValue = T

source§

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

source§

impl<T> PropertySetNested for Mutex<T>

§

type SetNestedValue = T

source§

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

source§

impl<T> PropertySetNested for RwLock<T>

§

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§