pub struct SectionNumber { /* private fields */ }Expand description
Represents an assigned section number.
Section numbers aren’t assigned by default, but can be enabled using the
sectnums and sectnumlevels attributes as described in Section Numbers.
Implementations§
Source§impl SectionNumber
impl SectionNumber
Sourcepub fn components(&self) -> &[usize]
pub fn components(&self) -> &[usize]
Iterate over the components of the section number.
Trait Implementations§
Source§impl Clone for SectionNumber
impl Clone for SectionNumber
Source§fn clone(&self) -> SectionNumber
fn clone(&self) -> SectionNumber
Returns a duplicate of the value. Read more
1.0.0 · 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 SectionNumber
impl Debug for SectionNumber
Source§impl Default for SectionNumber
impl Default for SectionNumber
Source§fn default() -> SectionNumber
fn default() -> SectionNumber
Returns the “default value” for a type. Read more
Source§impl Display for SectionNumber
impl Display for SectionNumber
Source§impl PartialEq for SectionNumber
impl PartialEq for SectionNumber
impl Eq for SectionNumber
impl StructuralPartialEq for SectionNumber
Auto Trait Implementations§
impl Freeze for SectionNumber
impl RefUnwindSafe for SectionNumber
impl Send for SectionNumber
impl Sync for SectionNumber
impl Unpin for SectionNumber
impl UnwindSafe for SectionNumber
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