pub enum ReplaceError {
OpenTooDeep,
InconsistentOpenDepths,
CannotJoin {
onto: String,
joined: String,
},
InvalidContent {
parent: String,
},
Position {
pos: usize,
max: usize,
},
}Expand description
Why a Node::replace could not be performed.
Variants§
OpenTooDeep
The slice’s open depth exceeds the insertion position’s depth.
InconsistentOpenDepths
from’s and to’s open depths are inconsistent with the slice.
CannotJoin
Two nodes that would have to be joined have incompatible content.
InvalidContent
The resulting content would violate the schema for parent.
Position
A boundary position was out of range.
Trait Implementations§
Source§impl Clone for ReplaceError
impl Clone for ReplaceError
Source§fn clone(&self) -> ReplaceError
fn clone(&self) -> ReplaceError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplaceError
impl Debug for ReplaceError
Source§impl Display for ReplaceError
impl Display for ReplaceError
impl Eq for ReplaceError
Source§impl Error for ReplaceError
impl Error for ReplaceError
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()
Source§impl PartialEq for ReplaceError
impl PartialEq for ReplaceError
Source§fn eq(&self, other: &ReplaceError) -> bool
fn eq(&self, other: &ReplaceError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReplaceError
Auto Trait Implementations§
impl Freeze for ReplaceError
impl RefUnwindSafe for ReplaceError
impl Send for ReplaceError
impl Sync for ReplaceError
impl Unpin for ReplaceError
impl UnsafeUnpin for ReplaceError
impl UnwindSafe for ReplaceError
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