Struct calyx_utils::Error
source · 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_post_msg(self, msg: Option<String>) -> Self
pub fn reserved_name(name: Id) -> Self
pub fn malformed_control(msg: String) -> 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(name: Id, typ: String) -> Self
pub fn already_bound(name: Id, typ: String) -> Self
pub fn unused<S: ToString>(group: Id, typ: S) -> Self
pub fn papercut(msg: String) -> Self
pub fn misc(msg: String) -> Self
pub fn invalid_file(msg: String) -> Self
pub fn write_error(msg: String) -> Self
Trait Implementations§
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§
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