Struct planus::errors::UnknownEnumTag
source · pub struct UnknownEnumTag {
pub source_location: ErrorLocation,
pub error_kind: UnknownEnumTagKind,
}
Expand description
Information about an unrecognized enum tag.
In order to be forward compatible Result
s with this error variant should
be handled gracefully.
Fields§
§source_location: ErrorLocation
The location of the unknown tag.
error_kind: UnknownEnumTagKind
The unknown tag.
Trait Implementations§
source§impl Clone for UnknownEnumTag
impl Clone for UnknownEnumTag
source§fn clone(&self) -> UnknownEnumTag
fn clone(&self) -> UnknownEnumTag
Returns a copy 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 UnknownEnumTag
impl Debug for UnknownEnumTag
source§impl Display for UnknownEnumTag
impl Display for UnknownEnumTag
source§impl Error for UnknownEnumTag
impl Error for UnknownEnumTag
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<UnknownEnumTag> for Error
impl From<UnknownEnumTag> for Error
source§fn from(error: UnknownEnumTag) -> Self
fn from(error: UnknownEnumTag) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UnknownEnumTag
impl RefUnwindSafe for UnknownEnumTag
impl Send for UnknownEnumTag
impl Sync for UnknownEnumTag
impl Unpin for UnknownEnumTag
impl UnwindSafe for UnknownEnumTag
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