pub struct Numbering<'a> {
pub abstract_numberings: Vec<AbstractNum<'a>>,
pub numberings: Vec<Num>,
}
Expand description
Numbering defines ordered and unordered lists.
Fields§
§abstract_numberings: Vec<AbstractNum<'a>>
Abstract numberings are not used directly when laying out your document. Instead, they are referred to by the numberings.
numberings: Vec<Num>
Numberings are used by your document and refer to abstract numberings for layout.
Implementations§
Source§impl<'a> Numbering<'a>
impl<'a> Numbering<'a>
Sourcepub fn numbering_details(&self, id: isize) -> Option<AbstractNum<'_>>
pub fn numbering_details(&self, id: isize) -> Option<AbstractNum<'_>>
Actual numberings refer to abstract numberings, and may overrule some settings. This helper function takes an numbering id that is provided in a paragraph, looks up the details in the numbering section and merges it with the abstract numbering to get a complete AbstractNum object.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Numbering<'a>
impl<'a> RefUnwindSafe for Numbering<'a>
impl<'a> Send for Numbering<'a>
impl<'a> Sync for Numbering<'a>
impl<'a> Unpin for Numbering<'a>
impl<'a> UnwindSafe for Numbering<'a>
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