Home
last modified time | relevance | path

Searched refs:TryReserveError (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/rust/alloc/vec/
Dspec_extend.rs4 use crate::collections::TryReserveError;
18 fn try_spec_extend(&mut self, iter: I) -> Result<(), TryReserveError>; in try_spec_extend() argument
35 default fn try_spec_extend(&mut self, iter: I) -> Result<(), TryReserveError> { in try_spec_extend() argument
54 default fn try_spec_extend(&mut self, iterator: I) -> Result<(), TryReserveError> { in try_spec_extend() argument
70 fn try_spec_extend(&mut self, mut iterator: IntoIter<T>) -> Result<(), TryReserveError> { in try_spec_extend() argument
95 default fn try_spec_extend(&mut self, iterator: I) -> Result<(), TryReserveError> { in try_spec_extend() argument
115 fn try_spec_extend(&mut self, iterator: slice::Iter<'a, T>) -> Result<(), TryReserveError> { in try_spec_extend() argument
Dmod.rs74 use crate::collections::{TryReserveError, TryReserveErrorKind};
536 pub fn try_with_capacity(capacity: usize) -> Result<Self, TryReserveError> { in try_with_capacity() argument
789 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in() argument
1092 pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError> { in try_reserve() argument
1135 pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), TryReserveError> { in try_reserve_exact() argument
1966 pub fn try_push(&mut self, value: T) -> Result<(), TryReserveError> { in try_push() argument
2089 unsafe fn try_append_elements(&mut self, other: *const [T]) -> Result<(), TryReserveError> { in try_append_elements() argument
2544 pub fn try_resize(&mut self, new_len: usize, value: T) -> Result<(), TryReserveError> { in try_resize() argument
2600 pub fn try_extend_from_slice(&mut self, other: &[T]) -> Result<(), TryReserveError> { in try_extend_from_slice() argument
2735 …y_extend_with<E: ExtendWith<T>>(&mut self, n: usize, mut value: E) -> Result<(), TryReserveError> { in try_extend_with() argument
[all …]
/Linux-v6.6/rust/alloc/
Draw_vec.rs16 use crate::collections::TryReserveError;
138 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in() argument
212 … fn try_allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Result<Self, TryReserveError> { in try_allocate_in() argument
339 pub fn try_reserve(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in try_reserve() argument
349 pub fn try_reserve_for_push(&mut self, len: usize) -> Result<(), TryReserveError> { in try_reserve_for_push() argument
380 ) -> Result<(), TryReserveError> { in try_reserve_exact() argument
422 fn grow_amortized(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_amortized() argument
451 fn grow_exact(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_exact() argument
468 fn shrink(&mut self, cap: usize) -> Result<(), TryReserveError> { in shrink() argument
497 ) -> Result<NonNull<[u8]>, TryReserveError> in finish_grow()
[all …]
/Linux-v6.6/rust/alloc/collections/
Dmod.rs63 pub struct TryReserveError { struct
67 impl TryReserveError { impl
116 impl From<TryReserveErrorKind> for TryReserveError { implementation
133 impl Display for TryReserveError { implementation
159 impl core::error::Error for TryReserveError {} implementation
/Linux-v6.6/rust/kernel/
Derror.rs11 collections::TryReserveError,
195 impl From<TryReserveError> for Error {
196 fn from(_: TryReserveError) -> Error { in from()