Searched refs:InsertError (Results 1 – 3 of 3) sorted by relevance
| /linux/rust/kernel/alloc/kvec/ |
| H A D | errors.rs | 41 pub enum InsertError<T> { enum 48 impl<T> fmt::Debug for InsertError<T> { implementation 51 InsertError::IndexOutOfBounds(_) => write!(f, "Index out of bounds"), in fmt() 52 InsertError::OutOfCapacity(_) => write!(f, "Not enough capacity"), in fmt() 57 impl<T> From<InsertError<T>> for Error { 58 fn from(_: InsertError<T>) -> Error { in from()
|
| /linux/rust/kernel/ |
| H A D | maple_tree.rs | 121 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 D | kvec.rs | 29 pub use self::errors::{InsertError, PushError, RemoveError}; 399 ) -> Result<(), InsertError<T>> { in insert_within_capacity() 402 return Err(InsertError::IndexOutOfBounds(element)); in insert_within_capacity() 406 return Err(InsertError::OutOfCapacity(element)); in insert_within_capacity()
|