pub struct PlanError { /* private fields */ }Expand description
A bounded, fail-closed plan profile error.
Implementations§
Source§impl PlanError
impl PlanError
Sourcepub const fn code(&self) -> PlanErrorCode
pub const fn code(&self) -> PlanErrorCode
Returns the stable plan-profile error code.
Sourcepub fn field(&self) -> Option<&str>
pub fn field(&self) -> Option<&str>
Returns the annotation field associated with the failure, when available.
Sourcepub const fn operation_index(&self) -> Option<usize>
pub const fn operation_index(&self) -> Option<usize>
Returns the logical operation index associated with the failure.
Sourcepub const fn edit_index(&self) -> Option<usize>
pub const fn edit_index(&self) -> Option<usize>
Returns the edit index within the logical operation, when available.
Returns the conflicting edit index within the logical operation, when available.
Sourcepub const fn base_code(&self) -> Option<EditErrorCode>
pub const fn base_code(&self) -> Option<EditErrorCode>
Returns the underlying weavatrix-edit code for a base-plan failure.
Trait Implementations§
impl Eq for PlanError
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()
impl StructuralPartialEq for PlanError
Auto Trait Implementations§
impl Freeze for PlanError
impl RefUnwindSafe for PlanError
impl Send for PlanError
impl Sync for PlanError
impl Unpin for PlanError
impl UnsafeUnpin 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