Struct erg_common::error::ErrorCore
source · [−]pub struct ErrorCore {
pub errno: usize,
pub kind: ErrorKind,
pub loc: Location,
pub desc: AtomicStr,
pub hint: Option<AtomicStr>,
}
Expand description
Erg内で使われるエラーの共通部分 使用する場合は必ずwrapすること
Fields
errno: usize
kind: ErrorKind
loc: Location
desc: AtomicStr
hint: Option<AtomicStr>
Implementations
sourceimpl ErrorCore
impl ErrorCore
pub fn new<S: Into<AtomicStr>>(
errno: usize,
kind: ErrorKind,
loc: Location,
desc: S,
hint: Option<AtomicStr>
) -> Self
pub fn dummy(errno: usize) -> Self
pub fn unreachable(fn_name: &str, line: u32) -> Self
pub fn bug(errno: usize, loc: Location, fn_name: &str, line: u32) -> Self
Trait Implementations
impl Eq for ErrorCore
impl StructuralEq for ErrorCore
impl StructuralPartialEq for ErrorCore
Auto Trait Implementations
impl RefUnwindSafe for ErrorCore
impl Send for ErrorCore
impl Sync for ErrorCore
impl Unpin for ErrorCore
impl UnwindSafe for ErrorCore
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