pub struct DepProp<Owner: DepType, PropType: Convenient> { /* private fields */ }
Expand description
A dependency property.
Implementations
sourceimpl<Owner: DepType, PropType: Convenient> DepProp<Owner, PropType>
impl<Owner: DepType, PropType: Convenient> DepProp<Owner, PropType>
pub fn offset(self) -> usize
pub fn set<X: Convenient>(
self,
state: &mut dyn State,
id: Owner::Id,
value: PropType
) -> Re<X> where
Owner::Id: DepObj<Owner::DepObjKey, Owner>,
pub fn unset<X: Convenient>(self, state: &mut dyn State, id: Owner::Id) -> Re<X> where
Owner::Id: DepObj<Owner::DepObjKey, Owner>,
pub fn bind(
self,
state: &mut dyn State,
id: Owner::Id,
binding: impl Into<BindingBase<PropType>>
) where
Owner: 'static,
Owner::Id: DepObj<Owner::DepObjKey, Owner>,
pub fn unbind(self, state: &mut dyn State, id: Owner::Id) where
Owner::Id: DepObj<Owner::DepObjKey, Owner>,
pub fn value_source(self, id: Owner::Id) -> DepPropValueSource<Owner, PropType>
pub fn change_source(
self,
id: Owner::Id
) -> DepPropChangeSource<Owner, PropType>
pub fn change_initial_source(
self,
id: Owner::Id
) -> DepPropChangeInitialSource<Owner, PropType>
pub fn change_final_source(
self,
id: Owner::Id
) -> DepPropChangeFinalSource<Owner, PropType>
Trait Implementations
sourceimpl<Owner: DepType, PropType: Convenient> Clone for DepProp<Owner, PropType>
impl<Owner: DepType, PropType: Convenient> Clone for DepProp<Owner, PropType>
sourceimpl<Owner: DepType, PropType: Convenient> Debug for DepProp<Owner, PropType>
impl<Owner: DepType, PropType: Convenient> Debug for DepProp<Owner, PropType>
impl<Owner: DepType, PropType: Convenient> Copy for DepProp<Owner, PropType>
Auto Trait Implementations
impl<Owner, PropType> RefUnwindSafe for DepProp<Owner, PropType> where
Owner: RefUnwindSafe,
PropType: RefUnwindSafe,
impl<Owner, PropType> Send for DepProp<Owner, PropType>
impl<Owner, PropType> Sync for DepProp<Owner, PropType>
impl<Owner, PropType> Unpin for DepProp<Owner, PropType>
impl<Owner, PropType> UnwindSafe for DepProp<Owner, PropType> where
Owner: UnwindSafe,
PropType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more