vec_insert

Function vec_insert 

Source
pub fn vec_insert<T>(ov: &mut Option<Vec<T>>, item: T)
Expand description

Perform an safe insert operation on a optional vector of TMF objects

ยงActions

  • If Option is Some(v) then item is inserted into v
  • If Option is None then a new Vec is created with item as single entry