Struct dep_obj::DepProp [−][src]
pub struct DepProp<Owner: DepType, PropType: Convenient> { /* fields omitted */ }
Expand description
A dependency property.
Implementations
Creates dependency property. The only safe way to call this function is through
the dep_type
or the dep_type_with_builder
macro using.
pub fn set_distinct(
self,
state: &mut dyn State,
obj: Glob<Owner::Id, Owner>,
value: PropType
) where
PropType: PartialEq,
pub fn unset_distinct(self, state: &mut dyn State, obj: Glob<Owner::Id, Owner>) where
PropType: PartialEq,
pub fn bind_distinct(
self,
state: &mut dyn State,
obj: Glob<Owner::Id, Owner>,
binding: impl Into<Binding<PropType>>
) where
PropType: PartialEq,
Owner: 'static,
Trait Implementations
Auto Trait Implementations
impl<Owner, PropType> RefUnwindSafe for DepProp<Owner, PropType>
impl<Owner, PropType> UnwindSafe for DepProp<Owner, PropType>
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more