#[repr(u8)]pub enum CBoxTryCloneError {
BoxError(CBoxError),
AllocatorCloningError = 1,
ItemCloningError = 2,
}Expand description
Represents possible errors when working with CBox.
Variants§
BoxError(CBoxError)
The underlying allocator returned an error.
AllocatorCloningError = 1
The allocator cloning failed.
ItemCloningError = 2
The item cloning failed.
Trait Implementations§
Source§impl Clone for CBoxTryCloneError
impl Clone for CBoxTryCloneError
Source§fn clone(&self) -> CBoxTryCloneError
fn clone(&self) -> CBoxTryCloneError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CBoxTryCloneError
Source§impl Debug for CBoxTryCloneError
impl Debug for CBoxTryCloneError
Source§impl Display for CBoxTryCloneError
impl Display for CBoxTryCloneError
impl Eq for CBoxTryCloneError
Source§impl From<CBoxError> for CBoxTryCloneError
impl From<CBoxError> for CBoxTryCloneError
Source§impl From<Infallible> for CBoxTryCloneError
impl From<Infallible> for CBoxTryCloneError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl Hash for CBoxTryCloneError
impl Hash for CBoxTryCloneError
Source§impl PartialEq for CBoxTryCloneError
impl PartialEq for CBoxTryCloneError
Source§fn eq(&self, other: &CBoxTryCloneError) -> bool
fn eq(&self, other: &CBoxTryCloneError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ReprC for CBoxTryCloneError
impl ReprC for CBoxTryCloneError
impl StructuralPartialEq for CBoxTryCloneError
Auto Trait Implementations§
impl Freeze for CBoxTryCloneError
impl RefUnwindSafe for CBoxTryCloneError
impl Send for CBoxTryCloneError
impl Sync for CBoxTryCloneError
impl Unpin for CBoxTryCloneError
impl UnsafeUnpin for CBoxTryCloneError
impl UnwindSafe for CBoxTryCloneError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more