Struct planus::errors::UnknownEnumTagKind
source · pub struct UnknownEnumTagKind {
pub tag: i128,
}
Expand description
The value of an unknown enum tag.
Fields§
§tag: i128
The unknown tag.
Implementations§
source§impl UnknownEnumTagKind
impl UnknownEnumTagKind
sourcepub fn with_error_location(
self,
type_: &'static str,
method: &'static str,
byte_offset: usize
) -> UnknownEnumTag
pub fn with_error_location(
self,
type_: &'static str,
method: &'static str,
byte_offset: usize
) -> UnknownEnumTag
Helper function that adds an error location to this error.
Trait Implementations§
source§impl Clone for UnknownEnumTagKind
impl Clone for UnknownEnumTagKind
source§fn clone(&self) -> UnknownEnumTagKind
fn clone(&self) -> UnknownEnumTagKind
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 UnknownEnumTagKind
impl Debug for UnknownEnumTagKind
source§impl Display for UnknownEnumTagKind
impl Display for UnknownEnumTagKind
source§impl Error for UnknownEnumTagKind
impl Error for UnknownEnumTagKind
1.30.0 · 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<UnknownEnumTagKind> for ErrorKind
impl From<UnknownEnumTagKind> for ErrorKind
source§fn from(source: UnknownEnumTagKind) -> Self
fn from(source: UnknownEnumTagKind) -> Self
Converts to this type from the input type.