Skip to main content

refresh_shared_param

Function refresh_shared_param 

Source
pub fn refresh_shared_param<T: SharedParam + PartialEq + Clone>(
    stored: &mut T,
    new: &T,
) -> bool
Expand description

refresh_param for an Rc or Arc parameter: the same allocation is unchanged without comparing its contents, which PartialEq on a pointer to a type that is not Eq otherwise walks in full on every recomposition.