Trait Property

pub trait Property {
    type Value: HasParamSpec;
}
Expand description

A type that can be used as a property. It covers every type which have an associated ParamSpec (HasParamSpec) and some useful types wrapping HasParamSpec. The definition is recursive, so you can nest many Propertys together. The final ParamSpec will be the one of the innermost type

Required Associated Types§

Implementations on Foreign Types§

§

impl Property for AtomicBool

§

type Value = bool

§

impl Property for AtomicI8

§

type Value = i8

§

impl Property for AtomicI32

§

type Value = i32

§

impl Property for AtomicI64

§

type Value = i64

§

impl Property for AtomicU8

§

type Value = u8

§

impl Property for AtomicU32

§

type Value = u32

§

impl Property for AtomicU64

§

type Value = u64

§

impl<T> Property for Rc<T>
where T: Property,

§

type Value = <T as Property>::Value

§

impl<T> Property for Arc<T>
where T: Property,

§

type Value = <T as Property>::Value

§

impl<T> Property for OnceCell<T>
where T: Property,

§

type Value = <T as Property>::Value

§

impl<T> Property for Cell<T>
where T: Property,

§

type Value = <T as Property>::Value

§

impl<T> Property for RefCell<T>
where T: Property,

§

type Value = <T as Property>::Value

§

impl<T> Property for PhantomData<T>
where T: Property,

§

type Value = <T as Property>::Value

§

impl<T> Property for OnceLock<T>
where T: Property,

§

type Value = <T as Property>::Value

§

impl<T> Property for Mutex<T>
where T: Property,

§

type Value = <T as Property>::Value

§

impl<T> Property for RwLock<T>
where T: Property,

§

type Value = <T as Property>::Value

§

impl<T> Property for TemplateChild<T>

§

type Value = <T as Property>::Value

Implementors§

§

impl<T> Property for SendWeakRef<T>
where T: IsA<Object> + HasParamSpec,

§

type Value = Option<T>

§

impl<T> Property for WeakRef<T>
where T: IsA<Object> + HasParamSpec,

§

type Value = Option<T>

§

impl<T> Property for T
where T: HasParamSpec,

§

type Value = T