Home
last modified time | relevance | path

Searched refs:VecExt (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/rust/kernel/alloc/
Dvec_ext.rs9 pub trait VecExt<T>: Sized { interface
77 impl<T> VecExt<T> for Vec<T> {
80 <Self as VecExt<_>>::reserve(&mut v, capacity, flags)?; in with_capacity()
85 <Self as VecExt<_>>::reserve(self, 1, flags)?; in push()
100 <Self as VecExt<_>>::reserve(self, other.len(), flags)?; in extend_from_slice()
/linux-6.12.1/rust/kernel/
Dprelude.rs17 pub use crate::alloc::{box_ext::BoxExt, flags::*, vec_ext::VecExt};
Dstr.rs5 use crate::alloc::{flags::*, vec_ext::VecExt, AllocError};
806 let mut buf = <Vec<_> as VecExt<_>>::with_capacity(size, GFP_KERNEL)?; in try_from_fmt()
855 <Vec<_> as VecExt<_>>::extend_from_slice(&mut buf, cstr.as_bytes_with_nul(), GFP_KERNEL) in try_from()
Duaccess.rs296 VecExt::<u8>::reserve(buf, len, flags)?; in read_all()