Searched refs:VecExt (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/rust/kernel/alloc/ |
D | vec_ext.rs | 9 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/ |
D | prelude.rs | 17 pub use crate::alloc::{box_ext::BoxExt, flags::*, vec_ext::VecExt};
|
D | str.rs | 5 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()
|
D | uaccess.rs | 296 VecExt::<u8>::reserve(buf, len, flags)?; in read_all()
|