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 */ }

Trait Implementations§

Source§

impl<T> Default for KVec<T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more