Struct erg_common::error::ErrorCore
source · [−]pub struct ErrorCore {
pub errno: usize,
pub kind: ErrorKind,
pub loc: Location,
pub desc: Str,
pub hint: Option<Str>,
}
Expand description
Erg内で使われるエラーの共通部分 使用する場合は必ずwrapすること
Fields
errno: usize
kind: ErrorKind
loc: Location
desc: Str
hint: Option<Str>
Implementations
Trait Implementations
sourceimpl From<DeserializeError> for ErrorCore
impl From<DeserializeError> for ErrorCore
sourcefn from(err: DeserializeError) -> Self
fn from(err: DeserializeError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ErrorCore> for ErrorCore
impl PartialEq<ErrorCore> for ErrorCore
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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