Skip to main content

refresh_param

Function refresh_param 

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

Updates one stored parameter to new and says whether it differed, reusing the stored value’s allocations where Clone::clone_from can.