Skip to main content

unwrap_vec_type

Function unwrap_vec_type 

Source
pub fn unwrap_vec_type(ty: &Type) -> Option<&Type>
Expand description

If ty is Vec<T>, returns Some(&T). Otherwise returns None.