[−][src]Enum fastobo::error::SyntaxError
A syntax error.
Variants
An unexpected rule was used in FromPair::from_pair
.
Example
let pairs = OboParser::parse(Rule::UnquotedString, "hello, world!"); QuotedString::from_pair(pairs.unwrap().next().unwrap()).unwrap_err();
The underlying parser encountered an error.
Example
QuotedString::from_str("definitely not a quoted string").unwrap_err();
Trait Implementations
impl Eq for SyntaxError
[src]
impl PartialEq<SyntaxError> for SyntaxError
[src]
fn eq(&self, other: &SyntaxError) -> bool
[src]
fn ne(&self, other: &SyntaxError) -> bool
[src]
impl From<Error<Rule>> for SyntaxError
[src]
impl From<SyntaxError> for Error
[src]
fn from(error: SyntaxError) -> Self
[src]
impl Debug for SyntaxError
[src]
impl Display for SyntaxError
[src]
impl Error for SyntaxError
[src]
Auto Trait Implementations
impl Sync for SyntaxError
impl Send for SyntaxError
impl Unpin for SyntaxError
impl UnwindSafe for SyntaxError
impl RefUnwindSafe for SyntaxError
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,