pub enum PosEditError {
Pos(PosError),
Range(RangeError),
Block(BlockError),
Apply(ApplyError),
UnsupportedSpan {
from: usize,
to: usize,
},
OverlappingEdits {
from: usize,
to: usize,
},
}Expand description
Why a Node::apply_pos_edits batch could not be applied.
Variants§
Pos(PosError)
A flat position failed to resolve.
Range(RangeError)
An inline range op failed.
Block(BlockError)
A block-structural op failed.
Apply(ApplyError)
A recorded change failed to apply.
UnsupportedSpan
A cross-block span whose endpoints aren’t sibling blocks under a common parent (different depths/parents) — unsupported in v1.
OverlappingEdits
Two edits in the batch overlap; v1 requires disjoint spans.
Trait Implementations§
Source§impl Clone for PosEditError
impl Clone for PosEditError
Source§fn clone(&self) -> PosEditError
fn clone(&self) -> PosEditError
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 PosEditError
impl Debug for PosEditError
Source§impl Display for PosEditError
impl Display for PosEditError
Source§impl Error for PosEditError
impl Error for PosEditError
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 From<ApplyError> for PosEditError
impl From<ApplyError> for PosEditError
Source§fn from(e: ApplyError) -> Self
fn from(e: ApplyError) -> Self
Converts to this type from the input type.
Source§impl From<BlockError> for PosEditError
impl From<BlockError> for PosEditError
Source§fn from(e: BlockError) -> Self
fn from(e: BlockError) -> Self
Converts to this type from the input type.
Source§impl From<PosError> for PosEditError
impl From<PosError> for PosEditError
Source§impl From<RangeError> for PosEditError
impl From<RangeError> for PosEditError
Source§fn from(e: RangeError) -> Self
fn from(e: RangeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PosEditError
impl PartialEq for PosEditError
Source§fn eq(&self, other: &PosEditError) -> bool
fn eq(&self, other: &PosEditError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PosEditError
impl StructuralPartialEq for PosEditError
Auto Trait Implementations§
impl Freeze for PosEditError
impl RefUnwindSafe for PosEditError
impl Send for PosEditError
impl Sync for PosEditError
impl Unpin for PosEditError
impl UnsafeUnpin for PosEditError
impl UnwindSafe for PosEditError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.