pub enum CircuitParserError {
IoError(Error),
RegexError(Error),
ParseIntError,
ParseLineError(String),
ParseGateError(String),
}Expand description
Errors emitted by the circuit parser.
Variants§
IoError(Error)
An I/O error occurred.
RegexError(Error)
A regular expression parsing error occurred.
ParseIntError
An error occurred parsing an integer.
ParseLineError(String)
An error occurred parsing a line.
ParseGateError(String)
An error occurred parsing a gate type.
Trait Implementations§
Source§impl Debug for CircuitParserError
impl Debug for CircuitParserError
Source§impl Display for CircuitParserError
impl Display for CircuitParserError
Source§impl From<Error> for CircuitParserError
impl From<Error> for CircuitParserError
Source§fn from(e: Error) -> CircuitParserError
fn from(e: Error) -> CircuitParserError
Converts to this type from the input type.
Source§impl From<Error> for CircuitParserError
impl From<Error> for CircuitParserError
Source§fn from(e: Error) -> CircuitParserError
fn from(e: Error) -> CircuitParserError
Converts to this type from the input type.
Source§impl From<ParseIntError> for CircuitParserError
impl From<ParseIntError> for CircuitParserError
Source§fn from(_: ParseIntError) -> CircuitParserError
fn from(_: ParseIntError) -> CircuitParserError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CircuitParserError
impl !RefUnwindSafe for CircuitParserError
impl Send for CircuitParserError
impl Sync for CircuitParserError
impl Unpin for CircuitParserError
impl !UnwindSafe for CircuitParserError
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> 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§impl<T> IsSameType<T> for T
impl<T> IsSameType<T> for T
§type EqualityProposition = TrueEqualityProposition
type EqualityProposition = TrueEqualityProposition
The [
EqualityProposition] that Self == T