pub enum AttrError {
MissingOpenBrace,
UnclosedBrace,
UnterminatedQuote,
EmptyValue {
key: String,
},
InvalidKey {
token: String,
},
}Expand description
Errors parsing an attribute block.
Variants§
MissingOpenBrace
Input did not start with {.
UnclosedBrace
Block opened with { but no matching } was found.
UnterminatedQuote
A " opened but had no closing " before the block ended.
EmptyValue
A key= was followed by no value (end of input or whitespace).
InvalidKey
A token started with = (no key before it) or had a malformed key.
Trait Implementations§
impl Eq for AttrError
impl StructuralPartialEq for AttrError
Auto Trait Implementations§
impl Freeze for AttrError
impl RefUnwindSafe for AttrError
impl Send for AttrError
impl Sync for AttrError
impl Unpin for AttrError
impl UnsafeUnpin for AttrError
impl UnwindSafe for AttrError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.