Struct dep_obj::DepObjRefMut [−][src]
pub struct DepObjRefMut<'a, Owner: DepType, Arena> { /* fields omitted */ }
Implementations
pub fn new(
arena: &'a mut Arena,
id: Owner::Id,
get_obj_mut: for<'b> fn(arena: &'b mut Arena, id: Owner::Id) -> &'b mut Owner
) -> Self
pub fn on_changed<PropType: DepPropType>(
&mut self,
prop: DepProp<Owner, PropType>,
callback: fn(state: &mut dyn State, id: Owner::Id, old: &PropType)
)
pub fn on<ArgsType>(
&mut self,
event: DepEvent<Owner, ArgsType>,
callback: fn(state: &mut dyn State, id: Owner::Id, args: &mut ArgsType)
)
pub fn on_vec_changed<ItemType: DepPropType>(
&mut self,
vec: DepVec<Owner, ItemType>,
callback: fn(state: &mut dyn State, id: Owner::Id, change: &DepVecChange<ItemType>)
)
Auto Trait Implementations
impl<'a, Owner, Arena> RefUnwindSafe for DepObjRefMut<'a, Owner, Arena> where
Arena: RefUnwindSafe,
<Owner as DepType>::Id: RefUnwindSafe,
impl<'a, Owner, Arena> Send for DepObjRefMut<'a, Owner, Arena> where
Arena: Send,
<Owner as DepType>::Id: Send,
impl<'a, Owner, Arena> Sync for DepObjRefMut<'a, Owner, Arena> where
Arena: Sync,
<Owner as DepType>::Id: Sync,
impl<'a, Owner, Arena> Unpin for DepObjRefMut<'a, Owner, Arena> where
<Owner as DepType>::Id: Unpin,
impl<'a, Owner, Arena> !UnwindSafe for DepObjRefMut<'a, Owner, Arena>