pub struct ErrorTool;Expand description
Tool for raising user-defined errors with custom messages
Usage: ERROR(message) - raises a UserError with the given message
Example: ERROR("Invalid input") stops execution with error
Note: This terminates program execution immediately
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorTool
impl RefUnwindSafe for ErrorTool
impl Send for ErrorTool
impl Sync for ErrorTool
impl Unpin for ErrorTool
impl UnsafeUnpin for ErrorTool
impl UnwindSafe for ErrorTool
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