Home
last modified time | relevance | path

Searched refs:InsertError (Results 1 – 3 of 3) sorted by relevance

/linux/rust/kernel/alloc/kvec/
H A Derrors.rs43 pub enum InsertError<T> {
50 impl<T> fmt::Debug for InsertError<T> { in fmt()
53 InsertError::IndexOutOfBounds(_) => write!(f, "Index out of bounds"), in fmt()
54 InsertError::OutOfCapacity(_) => write!(f, "Not enough capacity"), in fmt()
59 impl<T> From<InsertError<T>> for Error { in from()
61 fn from(_: InsertError<T>) -> Error {
41 pub enum InsertError<T> { global() enum
48 impl<T> fmt::Debug for InsertError<T> { global() implementation
/linux/rust/kernel/
H A Dmaple_tree.rs121 pub fn insert(&self, index: usize, value: T, gfp: Flags) -> Result<(), InsertError<T>> { in insert()
169 pub fn insert_range<R>(&self, range: R, value: T, gfp: Flags) -> Result<(), InsertError<T>> in insert_range()
174 return Err(InsertError { in insert_range()
198 Err(InsertError { value, cause }) in insert_range()
585 pub struct InsertError<T> { struct
614 impl<T> From<InsertError<T>> for Error {
616 fn from(insert_err: InsertError<T>) -> Error { in from()
/linux/rust/kernel/alloc/
H A Dkvec.rs32 pub use self::errors::{InsertError, PushError, RemoveError};
402 ) -> Result<(), InsertError<T>> { in insert_within_capacity()
405 return Err(InsertError::IndexOutOfBounds(element)); in insert_within_capacity()
409 return Err(InsertError::OutOfCapacity(element)); in insert_within_capacity()