pub struct Error { /* private fields */ }
Expand description
Errors generated by the compiler
Implementations§
Source§impl Error
impl Error
pub fn with_pos<T: WithPos>(self, pos: &T) -> Self
pub fn with_annotation<T: WithPos, S: ToString>(self, pos: &T, msg: S) -> Self
pub fn with_annotations<T: WithPos, S: ToString>( self, pos_iter: impl Iterator<Item = (T, S)>, ) -> Self
pub fn with_post_msg(self, msg: Option<String>) -> Self
pub fn reserved_name(name: Id) -> Self
pub fn malformed_control<S: ToString>(msg: S) -> Self
pub fn malformed_structure<S: ToString>(msg: S) -> Self
pub fn pass_assumption<S: ToString, M: ToString>(pass: S, msg: M) -> Self
pub fn undefined<S: ToString>(name: Id, typ: S) -> Self
pub fn already_bound<S: ToString>(name: Id, typ: S) -> Self
pub fn unused<S: ToString>(group: Id, typ: S) -> Self
pub fn papercut<S: ToString>(msg: S) -> Self
pub fn misc<S: ToString>(msg: S) -> Self
pub fn parse_error<S: ToString>(msg: S) -> Self
pub fn invalid_file<S: ToString>(msg: S) -> Self
pub fn write_error<S: ToString>(msg: S) -> Self
pub fn location(&self) -> (&str, usize, usize)
pub fn message(&self) -> String
pub fn annotations(&self) -> Vec<(String, usize, usize)>
Trait Implementations§
Source§impl From<Error> for MultiError
impl From<Error> for MultiError
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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