Enum mdbook::book::SummaryItem
source · pub enum SummaryItem {
Link(Link),
Separator,
PartTitle(String),
}
Expand description
An item in SUMMARY.md
which could be either a separator or a Link
.
Variants§
Trait Implementations§
source§impl Clone for SummaryItem
impl Clone for SummaryItem
source§fn clone(&self) -> SummaryItem
fn clone(&self) -> SummaryItem
Returns a copy 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 SummaryItem
impl Debug for SummaryItem
source§impl<'de> Deserialize<'de> for SummaryItem
impl<'de> Deserialize<'de> for SummaryItem
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Link> for SummaryItem
impl From<Link> for SummaryItem
source§fn from(other: Link) -> SummaryItem
fn from(other: Link) -> SummaryItem
Converts to this type from the input type.
source§impl PartialEq<SummaryItem> for SummaryItem
impl PartialEq<SummaryItem> for SummaryItem
source§fn eq(&self, other: &SummaryItem) -> bool
fn eq(&self, other: &SummaryItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.