Struct dep_obj::DepObjMut [−][src]
pub struct DepObjMut<'a, Owner: DepType, Arena> { /* fields omitted */ }
Implementations
pub fn new(
id: Owner::Id,
state: &'a mut dyn State,
get_obj_mut: for<'b> fn(arena: &'b mut Arena, id: Owner::Id) -> &'b mut Owner
) -> Self
pub fn set_uncond<PropType: DepPropType>(
&mut self,
prop: DepProp<Owner, PropType>,
value: PropType
) where
Owner::Id: 'static,
pub fn set_uncond_and_then<PropType: DepPropType>(
&mut self,
f: impl FnOnce(&mut dyn State, Owner::Id, PropType) + 'static,
prop: DepProp<Owner, PropType>,
value: PropType
) where
Owner::Id: 'static,
pub fn unset_uncond<PropType: DepPropType>(
&mut self,
prop: DepProp<Owner, PropType>
) -> bool where
Owner::Id: 'static,
pub fn unset_uncond_and_then<PropType: DepPropType>(
&mut self,
f: impl FnOnce(&mut dyn State, Owner::Id, PropType) + 'static,
prop: DepProp<Owner, PropType>
) -> bool where
Owner::Id: 'static,
pub fn set_distinct<PropType: DepPropType + PartialEq>(
&mut self,
prop: DepProp<Owner, PropType>,
value: PropType
) -> bool where
Owner::Id: 'static,
pub fn set_distinct_and_then<PropType: DepPropType + PartialEq>(
&mut self,
f: impl FnOnce(&mut dyn State, Owner::Id, PropType) + 'static,
prop: DepProp<Owner, PropType>,
value: PropType
) -> bool where
Owner::Id: 'static,
pub fn unset_distinct<PropType: DepPropType + PartialEq>(
&mut self,
prop: DepProp<Owner, PropType>
) -> bool where
Owner::Id: 'static,
pub fn unset_distinct_and_then<PropType: DepPropType + PartialEq>(
&mut self,
f: impl FnOnce(&mut dyn State, Owner::Id, PropType) + 'static,
prop: DepProp<Owner, PropType>
) -> bool where
Owner::Id: 'static,
pub fn raise<ArgsType: 'static>(
&mut self,
event: DepEvent<Owner, ArgsType>,
args: ArgsType
) where
Owner::Id: 'static,
pub fn raise_and_then<ArgsType: 'static>(
&mut self,
f: impl FnOnce(&mut dyn State, Owner::Id, ArgsType) + 'static,
event: DepEvent<Owner, ArgsType>,
args: ArgsType
) where
Owner::Id: 'static,
pub fn apply_style(
&mut self,
style: Option<Style<Owner>>
) -> Option<Style<Owner>> where
Owner::Id: 'static,
pub fn clear<ItemType: DepPropType>(&mut self, vec: DepVec<Owner, ItemType>) where
Owner::Id: 'static,
pub fn clear_and_then<ItemType: DepPropType>(
&mut self,
f: impl FnOnce(&mut dyn State, Owner::Id, DepVecChange<ItemType>) + 'static,
vec: DepVec<Owner, ItemType>
) where
Owner::Id: 'static,
pub fn push<ItemType: DepPropType>(
&mut self,
vec: DepVec<Owner, ItemType>,
item: ItemType
) where
Owner::Id: 'static,
pub fn push_and_then<ItemType: DepPropType>(
&mut self,
f: impl FnOnce(&mut dyn State, Owner::Id, DepVecChange<ItemType>) + 'static,
vec: DepVec<Owner, ItemType>,
item: ItemType
) where
Owner::Id: 'static,
pub fn insert<ItemType: DepPropType>(
&mut self,
vec: DepVec<Owner, ItemType>,
index: usize,
item: ItemType
) where
Owner::Id: 'static,
pub fn insert_and_then<ItemType: DepPropType>(
&mut self,
f: impl FnOnce(&mut dyn State, Owner::Id, DepVecChange<ItemType>) + 'static,
vec: DepVec<Owner, ItemType>,
index: usize,
item: ItemType
) where
Owner::Id: 'static,
pub fn append<ItemType: DepPropType>(
&mut self,
vec: DepVec<Owner, ItemType>,
other: &mut Vec<ItemType>
) where
Owner::Id: 'static,
pub fn append_and_then<ItemType: DepPropType>(
&mut self,
f: impl FnOnce(&mut dyn State, Owner::Id, DepVecChange<ItemType>) + 'static,
vec: DepVec<Owner, ItemType>,
other: &mut Vec<ItemType>
) where
Owner::Id: 'static,
Auto Trait Implementations
impl<'a, Owner, Arena> !RefUnwindSafe for DepObjMut<'a, Owner, Arena>
impl<'a, Owner, Arena> !UnwindSafe for DepObjMut<'a, Owner, Arena>