pub enum AllocateErrorWith<E> {
Error(AllocateError),
Copy(E),
}Expand description
Error type for allocate_with combining allocator errors and copy errors.
Variants§
Error(AllocateError)
Allocation error within the ID allocator structure.
Copy(E)
Error returned by the caller-provided copy closure.
Trait Implementations§
Source§impl<E: Clone> Clone for AllocateErrorWith<E>
impl<E: Clone> Clone for AllocateErrorWith<E>
Source§fn clone(&self) -> AllocateErrorWith<E>
fn clone(&self) -> AllocateErrorWith<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<E: Copy> Copy for AllocateErrorWith<E>
Source§impl<E: Debug> Debug for AllocateErrorWith<E>
impl<E: Debug> Debug for AllocateErrorWith<E>
impl<E: Eq> Eq for AllocateErrorWith<E>
Source§impl<E> From<AllocateErrorWith<E>> for Statuswhere
Status: From<E>,
impl<E> From<AllocateErrorWith<E>> for Statuswhere
Status: From<E>,
Source§fn from(err: AllocateErrorWith<E>) -> Self
fn from(err: AllocateErrorWith<E>) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq> PartialEq for AllocateErrorWith<E>
impl<E: PartialEq> PartialEq for AllocateErrorWith<E>
impl<E: PartialEq> StructuralPartialEq for AllocateErrorWith<E>
Auto Trait Implementations§
impl<E> Freeze for AllocateErrorWith<E>where
E: Freeze,
impl<E> RefUnwindSafe for AllocateErrorWith<E>where
E: RefUnwindSafe,
impl<E> Send for AllocateErrorWith<E>where
E: Send,
impl<E> Sync for AllocateErrorWith<E>where
E: Sync,
impl<E> Unpin for AllocateErrorWith<E>where
E: Unpin,
impl<E> UnsafeUnpin for AllocateErrorWith<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for AllocateErrorWith<E>where
E: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)