Struct calyx_utils::Error
source · [−]pub struct Error { /* private fields */ }
Expand description
Errors generated by the compiler
Implementations
sourceimpl 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
sourceimpl From<Error> for MultiError
impl From<Error> for MultiError
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more