pub enum SectionError {
HeadingIndexOutOfRange(usize),
NoSibling,
BoundaryError,
}Expand description
Error conditions for section operations.
Variants§
Trait Implementations§
Source§impl Clone for SectionError
impl Clone for SectionError
Source§fn clone(&self) -> SectionError
fn clone(&self) -> SectionError
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 SectionError
impl Debug for SectionError
Source§impl<'de> Deserialize<'de> for SectionError
impl<'de> Deserialize<'de> for SectionError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SectionError
impl Display for SectionError
impl Eq for SectionError
Source§impl Error for SectionError
impl Error for SectionError
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 SectionError
impl PartialEq for SectionError
Source§fn eq(&self, other: &SectionError) -> bool
fn eq(&self, other: &SectionError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SectionError
impl Serialize for SectionError
impl StructuralPartialEq for SectionError
Auto Trait Implementations§
impl Freeze for SectionError
impl RefUnwindSafe for SectionError
impl Send for SectionError
impl Sync for SectionError
impl Unpin for SectionError
impl UnsafeUnpin for SectionError
impl UnwindSafe for SectionError
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