#[non_exhaustive]pub struct EditFailure {
pub reason: EditError,
pub replacements: Vec<Replacement>,
pub appended: Vec<ContextBlock>,
}Expand description
An edit failure together with every submitted block of edit material.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.reason: EditErrorThe validation failure.
replacements: Vec<Replacement>Every submitted replacement, including replacements invalidated by overlap.
appended: Vec<ContextBlock>Blocks submitted for insertion after all replacements.
Trait Implementations§
Source§impl Clone for EditFailure
impl Clone for EditFailure
Source§impl Debug for EditFailure
impl Debug for EditFailure
Source§impl Display for EditFailure
impl Display for EditFailure
Source§impl Error for EditFailure
impl Error for EditFailure
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()
Source§impl PartialEq for EditFailure
impl PartialEq for EditFailure
impl StructuralPartialEq for EditFailure
Auto Trait Implementations§
impl Freeze for EditFailure
impl RefUnwindSafe for EditFailure
impl Send for EditFailure
impl Sync for EditFailure
impl Unpin for EditFailure
impl UnsafeUnpin for EditFailure
impl UnwindSafe for EditFailure
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