Enum crowbook::Number
[−]
[src]
pub enum Number { Hidden, Unnumbered, Default, Specified(i32), // some variants omitted }
Numbering for a given chapter or part
This Enum is only public so it can be passed to Book
methods, but
library users should not do exhaustive matchs on the variants,
since it is possible new variants will be added without being
considered a breaking change
Variants
Hidden
Chapter's title is hidden
Unnumbered
Chapter is not numbered
Default
Chapter follows books numbering, number is given automatically
Specified(i32)
Chapter number set to specified number
Methods
impl Number
[src]
fn is_part(&self) -> bool
Returns true if self is a part
Returns true if self is hidden
fn is_numbered(&self) -> bool
Returns true if self is numbered
Trait Implementations
impl Debug for Number
[src]
impl PartialEq for Number
[src]
fn eq(&self, __arg_0: &Number) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Number) -> bool
This method tests for !=
.
impl Clone for Number
[src]
fn clone(&self) -> Number
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more