pub struct OcelotError { /* private fields */ }Implementations§
Source§impl OcelotError
impl OcelotError
pub fn new(kind: ErrorKind) -> Self
pub fn at_location( kind: ErrorKind, location: &'static Location<'static>, ) -> Self
pub fn message(s: impl Into<SharedString>) -> Self
pub fn message_at_location( s: impl Into<SharedString>, location: &'static Location<'static>, ) -> Self
pub fn compilation_error(stage: CompilationStage) -> Self
pub fn compilation_error_at_location( stage: CompilationStage, location: &'static Location<'static>, ) -> Self
pub fn std(error: impl StdError + Send + Sync + 'static) -> Self
pub fn std_at_location( error: impl StdError + Send + Sync + 'static, location: &'static Location<'static>, ) -> Self
pub fn kind(&self) -> &ErrorKind
pub fn source(&self) -> Option<&OcelotError>
pub fn location(&self) -> &'static Location<'static>
pub fn span_trace(&self) -> &SpanTrace
pub fn with_source(self, source: impl Into<OcelotError>) -> Self
pub fn with_std_source( self, source: impl StdError + Send + Sync + 'static, ) -> Self
pub fn with_std_source_at_location( self, source: impl StdError + Send + Sync + 'static, location: &'static Location<'static>, ) -> Self
pub fn write_to(&self, write: &mut dyn Write) -> Result
pub fn to_test_string(&self) -> String
Trait Implementations§
Source§impl Debug for OcelotError
impl Debug for OcelotError
Auto Trait Implementations§
impl Freeze for OcelotError
impl !RefUnwindSafe for OcelotError
impl Send for OcelotError
impl Sync for OcelotError
impl Unpin for OcelotError
impl UnsafeUnpin for OcelotError
impl !UnwindSafe for OcelotError
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