pub enum RemovalError {
Root,
UnknownElement(ElemId),
}Expand description
Why a set of elements could not be resolved to removal spans.
Variants§
Root
The root element has no parent, so removing it would leave no document behind.
UnknownElement(ElemId)
No element in this document has this id.
Trait Implementations§
Source§impl Clone for RemovalError
impl Clone for RemovalError
Source§fn clone(&self) -> RemovalError
fn clone(&self) -> RemovalError
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 moreimpl Copy for RemovalError
Source§impl Debug for RemovalError
impl Debug for RemovalError
Source§impl Display for RemovalError
impl Display for RemovalError
impl Eq for RemovalError
Source§impl Error for RemovalError
impl Error for RemovalError
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 RemovalError
impl PartialEq for RemovalError
impl StructuralPartialEq for RemovalError
Auto Trait Implementations§
impl Freeze for RemovalError
impl RefUnwindSafe for RemovalError
impl Send for RemovalError
impl Sync for RemovalError
impl Unpin for RemovalError
impl UnsafeUnpin for RemovalError
impl UnwindSafe for RemovalError
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoCaveat for T
impl<T> IntoCaveat for T
Source§fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>where
W: Warning,
Any type can be converted to
Caveat<T> by supplying a list of Warnings.Source§fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
fn into_infallible_caveat(self) -> Caveat<Self, Infallible>
If a
FromSchema is infallible a Caveat can be created using this method.