[−][src]Struct blades::Taxonomy
One taxonomical category of the site (e.g. tags, categories).
Implementations
impl<'t, 'r> Taxonomy<'t, 'r>
[src]
pub fn classify(
pages: &'r [Page<'t>],
config: &'r Config<'t>,
templates: &'r Templates
) -> Result<HashMap<&'r str, Taxonomy<'t, 'r>, RandomState>>
[src]
pages: &'r [Page<'t>],
config: &'r Config<'t>,
templates: &'r Templates
) -> Result<HashMap<&'r str, Taxonomy<'t, 'r>, RandomState>>
Classify the given pages into taxonomies specified by the config.
pub fn keys(&self) -> &HashMap<&'r str, Vec<PageLinked<'t, 'r>>, RandomState>
[src]
Get a reference to the key map of the given taxonomy.
pub fn render(
&self,
config: &Config<'t>,
classification: &HashMap<&'_ str, Taxonomy<'t, '_>, RandomState>,
all: &[Page<'t>],
rendered: &MutSet
) -> Result
[src]
&self,
config: &Config<'t>,
classification: &HashMap<&'_ str, Taxonomy<'t, '_>, RandomState>,
all: &[Page<'t>],
rendered: &MutSet
) -> Result
Render this taxonomy into the output directory specified by the config.
pub fn render_key(
&self,
title: &str,
pages: &[PageLinked<'t, '_>],
config: &Config<'t>,
classification: &HashMap<&'_ str, Taxonomy<'t, '_>, RandomState>,
all: &[Page<'t>],
rendered: &MutSet
) -> Result
[src]
&self,
title: &str,
pages: &[PageLinked<'t, '_>],
config: &Config<'t>,
classification: &HashMap<&'_ str, Taxonomy<'t, '_>, RandomState>,
all: &[Page<'t>],
rendered: &MutSet
) -> Result
Render one key of this taxonomy into the output directory specified by the config.
Trait Implementations
impl<'t, 'r> Content for Taxonomy<'t, 'r>
[src]
fn capacity_hint(&self, tpl: &Template<'_>) -> usize
[src]
fn render_section<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), E::Error> where
C: ContentSequence,
E: Encoder,
fn render_field_escaped<E>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error> where
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error> where
E: Encoder,
fn render_field_unescaped<E>(
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error> where
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
encoder: &mut E
) -> Result<bool, E::Error> where
E: Encoder,
fn render_field_section<P, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, P>,
encoder: &mut E
) -> Result<bool, E::Error> where
P: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, P>,
encoder: &mut E
) -> Result<bool, E::Error> where
P: ContentSequence,
E: Encoder,
fn render_field_inverse<P, E>(
&self,
hash: u64,
name: &str,
section: Section<'_, P>,
encoder: &mut E
) -> Result<bool, E::Error> where
P: ContentSequence,
E: Encoder,
[src]
&self,
hash: u64,
name: &str,
section: Section<'_, P>,
encoder: &mut E
) -> Result<bool, E::Error> where
P: ContentSequence,
E: Encoder,
fn is_truthy(&self) -> bool
[src]
fn render_escaped<E>(
&self,
_encoder: &mut E
) -> Result<(), <E as Encoder>::Error> where
E: Encoder,
[src]
&self,
_encoder: &mut E
) -> Result<(), <E as Encoder>::Error> where
E: Encoder,
fn render_unescaped<E>(
&self,
encoder: &mut E
) -> Result<(), <E as Encoder>::Error> where
E: Encoder,
[src]
&self,
encoder: &mut E
) -> Result<(), <E as Encoder>::Error> where
E: Encoder,
fn render_cmark<E>(&self, encoder: &mut E) -> Result<(), <E as Encoder>::Error> where
E: Encoder,
[src]
E: Encoder,
fn render_inverse<C, E>(
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), <E as Encoder>::Error> where
C: ContentSequence,
E: Encoder,
[src]
&self,
section: Section<'_, C>,
encoder: &mut E
) -> Result<(), <E as Encoder>::Error> where
C: ContentSequence,
E: Encoder,
Auto Trait Implementations
impl<'t, 'r> RefUnwindSafe for Taxonomy<'t, 'r>
impl<'t, 'r> Send for Taxonomy<'t, 'r>
impl<'t, 'r> Sync for Taxonomy<'t, 'r>
impl<'t, 'r> Unpin for Taxonomy<'t, 'r> where
't: 'r,
't: 'r,
impl<'t, 'r> UnwindSafe for Taxonomy<'t, 'r>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,