pub enum SizeofError {
Dependent,
Incomplete,
VariableSize,
InvalidFieldName,
}
Expand description
Indicates the error that prevented determining the size of a type.
Variants§
Dependent
The type is a dependent type.
Incomplete
The type is an incomplete type.
VariableSize
The type is a variable size type.
InvalidFieldName
The supplied field name was invalid.
Trait Implementations§
Source§impl Clone for SizeofError
impl Clone for SizeofError
Source§fn clone(&self) -> SizeofError
fn clone(&self) -> SizeofError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SizeofError
impl Debug for SizeofError
Source§impl Display for SizeofError
impl Display for SizeofError
Source§impl Error for SizeofError
impl Error for SizeofError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<SizeofError> for String
impl From<SizeofError> for String
Source§fn from(error: SizeofError) -> String
fn from(error: SizeofError) -> String
Converts to this type from the input type.
Source§impl Hash for SizeofError
impl Hash for SizeofError
Source§impl PartialEq for SizeofError
impl PartialEq for SizeofError
impl Copy for SizeofError
impl Eq for SizeofError
impl StructuralPartialEq for SizeofError
Auto Trait Implementations§
impl Freeze for SizeofError
impl RefUnwindSafe for SizeofError
impl Send for SizeofError
impl Sync for SizeofError
impl Unpin for SizeofError
impl UnwindSafe for SizeofError
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