pub struct PlanError {
pub message: &'static str,
pub lookup: Option<Cow<'static, str>>,
pub description: Cow<'static, str>,
pub error_type: FormatErrorType,
}
Fields§
§message: &'static str
§lookup: Option<Cow<'static, str>>
§description: Cow<'static, str>
§error_type: FormatErrorType
Implementations§
Source§impl PlanError
impl PlanError
pub fn invalid( message: &'static str, specific: Option<impl Into<Cow<'static, str>>>, description: impl Into<Cow<'static, str>>, ) -> Self
pub fn unimplemented( message: &'static str, specific: Option<impl Into<Cow<'static, str>>>, description: impl Into<Cow<'static, str>>, ) -> Self
pub fn internal( message: &'static str, specific: Option<impl Into<Cow<'static, str>>>, description: impl Into<Cow<'static, str>>, ) -> Self
Trait Implementations§
Source§impl Error for PlanError
impl Error for PlanError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for PlanError
impl RefUnwindSafe for PlanError
impl Send for PlanError
impl Sync for PlanError
impl Unpin for PlanError
impl UnwindSafe for PlanError
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