pub enum FragmentParseError {
Lex(LexError),
Parse(TokenParseError),
MultipleCells {
count: usize,
},
}Expand description
An error produced while lexing or parsing one typed syntax fragment.
Variants§
Lex(LexError)
The source could not be converted into token trees.
Parse(TokenParseError)
The token trees did not match the requested fragment type.
MultipleCells
The source contained top-level cell boundaries and therefore was not a single fragment.
Trait Implementations§
Source§impl Clone for FragmentParseError
impl Clone for FragmentParseError
Source§fn clone(&self) -> FragmentParseError
fn clone(&self) -> FragmentParseError
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 moreSource§impl Debug for FragmentParseError
impl Debug for FragmentParseError
Source§impl Display for FragmentParseError
impl Display for FragmentParseError
impl Eq for FragmentParseError
Source§impl Error for FragmentParseError
impl Error for FragmentParseError
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<LexError> for FragmentParseError
impl From<LexError> for FragmentParseError
Source§impl From<TokenParseError> for FragmentParseError
impl From<TokenParseError> for FragmentParseError
Source§fn from(error: TokenParseError) -> Self
fn from(error: TokenParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FragmentParseError
impl PartialEq for FragmentParseError
impl StructuralPartialEq for FragmentParseError
Auto Trait Implementations§
impl Freeze for FragmentParseError
impl RefUnwindSafe for FragmentParseError
impl Send for FragmentParseError
impl Sync for FragmentParseError
impl Unpin for FragmentParseError
impl UnsafeUnpin for FragmentParseError
impl UnwindSafe for FragmentParseError
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