Type Alias KVec

Source
pub type KVec<T> = Vec<T, Kmalloc>;
Expand description

Type alias for Vec with a Kmalloc allocator.

§Examples

let mut v = KVec::new();
v.push(1, GFP_KERNEL)?;
assert_eq!(&v, &[1]);

Aliased Type§

struct KVec<T> { /* private fields */ }