[][src]Struct dep_obj::DepProp

pub struct DepProp<Owner: DepObj, Type>(_, _);

Implementations

impl<Owner: DepObj, Type: Eq> DepProp<Owner, Type>[src]

pub fn set_distinct(
    self,
    obj: &mut Owner,
    value: Type
) -> (Type, OnChanged<Owner::Id, Type>)
[src]

impl<Owner: DepObj, Type> DepProp<Owner, Type>[src]

pub fn set_uncond(
    self,
    obj: &mut Owner,
    value: Type
) -> (Type, OnChanged<Owner::Id, Type>)
[src]

pub fn get(self, obj: &Owner) -> &Type[src]

pub fn on_changed(
    self,
    obj: &mut Owner,
    callback: fn(owner_id: Owner::Id, context: &mut dyn Context, old: &Type)
)
[src]

Trait Implementations

impl<Owner: DepObj, Type> Clone for DepProp<Owner, Type>[src]

impl<Owner: DepObj, Type> Copy for DepProp<Owner, Type>[src]

impl<Owner: DepObj, Type> Debug for DepProp<Owner, Type>[src]

impl<Owner: DepObj, Type> Eq for DepProp<Owner, Type>[src]

impl<Owner: DepObj, Type> Hash for DepProp<Owner, Type>[src]

impl<Owner: DepObj, Type> Ord for DepProp<Owner, Type>[src]

impl<Owner: DepObj, Type> PartialEq<DepProp<Owner, Type>> for DepProp<Owner, Type>[src]

impl<Owner: DepObj, Type> PartialOrd<DepProp<Owner, Type>> for DepProp<Owner, Type>[src]

impl<Owner: DepObj, Type> Send for DepProp<Owner, Type>[src]

impl<Owner: DepObj, Type> Sync for DepProp<Owner, Type>[src]

impl<Owner: DepObj, Type> Unpin for DepProp<Owner, Type>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,