Skip to main content

extern_spec_T_From__ref__slice_T_Vec_T_from

Function extern_spec_T_From__ref__slice_T_Vec_T_from 

Source
pub fn extern_spec_T_From__ref__slice_T_Vec_T_from<T: Clone>(s: &[T]) -> Vec<T>
Expand description

extern spec for Vec<T>::from

This is not a real function: its only use is for documentation.

ensures

result@.len() == s@.len()

ensures

forall<i> 0 <= i && i < s@.len() ==> <T as Clone>::clone.postcondition((&s@[i],), result@[i])