Enum AttributeParseError
pub enum AttributeParseError<'a> {
ShadowWithoutValue,
DuplicateShadow,
Content {
shadow_resolved: bool,
error: AttributeContentError<'a>,
},
}Expand description
Main error for parsing of attributes.
Variants§
ShadowWithoutValue
The attribute’s only value is a singleton array indicating that it contains shadow information, but the array has no real data
DuplicateShadow
The attribute has two nested shadow levels, when the first is traversed (to the block hiding the possible shadow) another shadow information was found. This is invalid
Content
The attribute’s value is invalid for the expected type.
Fields
§
shadow_resolved: boolIf there was shadow information that was traversed to parse only the active value
This can be useful to spot if an invalid value triggered shadow-resolving, even though it shouldn’t happen
§
error: AttributeContentError<'a>The details about the error the content produced
Trait Implementations§
§impl<'a> Clone for AttributeParseError<'a>
impl<'a> Clone for AttributeParseError<'a>
§fn clone(&self) -> AttributeParseError<'a>
fn clone(&self) -> AttributeParseError<'a>
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 more§impl<'a> Debug for AttributeParseError<'a>
impl<'a> Debug for AttributeParseError<'a>
§impl<'a> Display for AttributeParseError<'a>
impl<'a> Display for AttributeParseError<'a>
§impl<'a> Error for AttributeParseError<'a>
impl<'a> Error for AttributeParseError<'a>
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()
§impl<'a> PartialEq for AttributeParseError<'a>
impl<'a> PartialEq for AttributeParseError<'a>
impl<'a> StructuralPartialEq for AttributeParseError<'a>
Auto Trait Implementations§
impl<'a> !Send for AttributeParseError<'a>
impl<'a> !Sync for AttributeParseError<'a>
impl<'a> Freeze for AttributeParseError<'a>
impl<'a> RefUnwindSafe for AttributeParseError<'a>
impl<'a> Unpin for AttributeParseError<'a>
impl<'a> UnsafeUnpin for AttributeParseError<'a>
impl<'a> UnwindSafe for AttributeParseError<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more