#[repr(transparent)]pub struct HeaderPath(pub Vec<String>);Expand description
A path of case-preserving visible heading texts.
A header path is always the complete document-tree ancestor chain, from the
document’s topmost enclosing heading down to the header itself. It does not
begin at the root scope: an enclosing h1, which is the title when the
document has one, is part of the path. Two same-named sections under
different ancestors therefore have different paths.
Tuple Fields§
§0: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for HeaderPath
impl Clone for HeaderPath
Source§fn clone(&self) -> HeaderPath
fn clone(&self) -> HeaderPath
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 HeaderPath
impl Debug for HeaderPath
Source§impl Default for HeaderPath
impl Default for HeaderPath
Source§fn default() -> HeaderPath
fn default() -> HeaderPath
Returns the “default value” for a type. Read more
Source§impl Display for HeaderPath
impl Display for HeaderPath
impl Eq for HeaderPath
Source§impl Hash for HeaderPath
impl Hash for HeaderPath
Source§impl PartialEq for HeaderPath
impl PartialEq for HeaderPath
impl StructuralPartialEq for HeaderPath
Auto Trait Implementations§
impl Freeze for HeaderPath
impl RefUnwindSafe for HeaderPath
impl Send for HeaderPath
impl Sync for HeaderPath
impl Unpin for HeaderPath
impl UnsafeUnpin for HeaderPath
impl UnwindSafe for HeaderPath
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.