Skip to main content

is_ownership_reconstruction

Function is_ownership_reconstruction 

Source
pub fn is_ownership_reconstruction(callee: Option<DefId>) -> bool
Expand description

Whether callee reconstructs an owned value, taking ownership of the pointed-to memory: from a single raw pointer (Box::from_raw, CString::from_raw, Arc::from_raw, Rc::from_raw) or from a Vec<u8> (CString::from_vec_with_nul_unchecked). Distinct from is_from_raw_parts, which builds a slice/Vec from (ptr, len[, cap]).