Function cairo_lang_utils::arc_unwrap_or_clone
source · pub fn arc_unwrap_or_clone<T: Clone>(arc: Arc<T>) -> TExpand 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>) -> TMoves the content out of the Arc if possible, otherwise just clones it.