pub enum NoDefault {
None(String),
TooLarge,
Refused(String),
}Expand description
Why a type has no default that can be used where an argument is left out.
Variants§
None(String)
The enum, by its name, has no default at all, since its first constructor leads back to it.
TooLarge
The default has more nodes than the limit of the codec.
Refused(String)
The default of an adopted type was built from the defaults of its arguments, and the function of the adoption refused them, for the reason given.
Trait Implementations§
impl Eq for NoDefault
impl StructuralPartialEq for NoDefault
Auto Trait Implementations§
impl Forget for NoDefault
impl Freeze for NoDefault
impl Move for NoDefault
impl RefUnwindSafe for NoDefault
impl Send for NoDefaultwhere
RawVecInner: Send,
impl Sync for NoDefaultwhere
RawVecInner: Sync,
impl Unpin for NoDefault
impl UnsafeUnpin for NoDefault
impl UnwindSafe for NoDefaultwhere
RawVecInner: UnwindSafe,
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