pub struct TableOfContentsError { /* private fields */ }Expand description
Error returned when an outline entry cannot become a TOC link.
Implementations§
Source§impl TableOfContentsError
impl TableOfContentsError
Sourcepub const fn entry_index(&self) -> usize
pub const fn entry_index(&self) -> usize
Returns the zero-based outline entry without a heading ID.
Trait Implementations§
Source§impl Clone for TableOfContentsError
impl Clone for TableOfContentsError
impl Copy for TableOfContentsError
Source§impl Debug for TableOfContentsError
impl Debug for TableOfContentsError
Source§impl Display for TableOfContentsError
impl Display for TableOfContentsError
impl Eq for TableOfContentsError
Source§impl Error for TableOfContentsError
impl Error for TableOfContentsError
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 TableOfContentsError
impl PartialEq for TableOfContentsError
impl StructuralPartialEq for TableOfContentsError
Auto Trait Implementations§
impl Forget for TableOfContentsError
impl Freeze for TableOfContentsError
impl Move for TableOfContentsError
impl RefUnwindSafe for TableOfContentsError
impl Send for TableOfContentsError
impl Sync for TableOfContentsError
impl Unpin for TableOfContentsError
impl UnsafeUnpin for TableOfContentsError
impl UnwindSafe for TableOfContentsError
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> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more