Section

Struct Section 

Source
pub struct Section { /* private fields */ }
Expand description

A Container object that contains Items and displays them in a section. Refer to section in LaTeX documentation for more information.

Implementations§

Source§

impl Section

Source

pub fn new( _name: &str, _sec_type: SectionType, _display_num: bool, _label: &str, ) -> Self

Initializes a new Section object

Source

pub fn add_item<I: Item + 'static>(&mut self, item: I)

Adds an Item to this Container

Trait Implementations§

Source§

impl Container for Section

Source§

impl Item for Section

Source§

fn build(&self, doc: &Document) -> Result<(), Error>

Source§

fn update_indent(&mut self, super_indent: &usize)

Auto Trait Implementations§

§

impl Freeze for Section

§

impl !RefUnwindSafe for Section

§

impl !Send for Section

§

impl !Sync for Section

§

impl Unpin for Section

§

impl !UnwindSafe for Section

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.