[][src]Struct blades::Taxonomy

pub struct Taxonomy<'t, 'r> { /* fields omitted */ }

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]

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]

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]

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]

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, 

impl<'t, 'r> UnwindSafe for Taxonomy<'t, 'r>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.