Function cairo_lang_utils::arc_unwrap_or_clone
source ยท pub fn arc_unwrap_or_clone<T: Clone>(arc: Arc<T>) -> T
Expand description
Moves the content out of the Arc if possible, otherwise just clones it.
pub fn arc_unwrap_or_clone<T: Clone>(arc: Arc<T>) -> T
Moves the content out of the Arc if possible, otherwise just clones it.