Struct rustpython_parser_core::BaseError
source · pub struct BaseError<T> {
pub error: T,
pub offset: TextSize,
pub source_path: String,
}
Fields§
§error: T
§offset: TextSize
§source_path: String
Implementations§
Trait Implementations§
source§impl<T> Error for BaseError<T>where
T: Error + 'static,
impl<T> Error for BaseError<T>where
T: Error + 'static,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<T: PartialEq> PartialEq for BaseError<T>
impl<T: PartialEq> PartialEq for BaseError<T>
impl<T: Eq> Eq for BaseError<T>
impl<T> StructuralPartialEq for BaseError<T>
Auto Trait Implementations§
impl<T> Freeze for BaseError<T>where
T: Freeze,
impl<T> RefUnwindSafe for BaseError<T>where
T: RefUnwindSafe,
impl<T> Send for BaseError<T>where
T: Send,
impl<T> Sync for BaseError<T>where
T: Sync,
impl<T> Unpin for BaseError<T>where
T: Unpin,
impl<T> UnwindSafe for BaseError<T>where
T: UnwindSafe,
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