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<X: Convenient>(
self,
state: &mut dyn State,
obj: Glob<Owner>,
value: PropType
) -> BYield<X>
pub fn bind(
self,
state: &mut dyn State,
obj: Glob<Owner>,
binding: impl Into<BindingBase<PropType>>
) where
Owner: 'static,
pub fn change_initial_source(
self,
obj: Glob<Owner>
) -> DepPropChangeInitialSource<Owner, PropType>
pub fn change_final_source(
self,
obj: Glob<Owner>
) -> DepPropChangeFinalSource<Owner, PropType>
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