Struct booklibrs::books::genres::Genres[][src]

pub struct Genres { /* fields omitted */ }

All existing genres.yaml of books

Implementations

impl Genres[src]

pub fn new() -> Self[src]

Creates empty set of genres.yaml

pub fn iter(&self) -> Iter<'_, String>[src]

iterator over Genres

pub fn len(&self) -> usize[src]

Amount of genres

pub fn load(&mut self)[src]

Loads from yaml file

Trait Implementations

impl Clone for Genres[src]

impl Debug for Genres[src]

impl Default for Genres[src]

impl From<BTreeSet<String>> for Genres[src]

fn from(set: BTreeSet<String>) -> Self[src]

Constructs genres from btree set

impl From<HashSet<String, RandomState>> for Genres[src]

fn from(set: HashSet<String>) -> Self[src]

Constructs genres from hash set

impl From<Vec<String, Global>> for Genres[src]

fn from(vec: Vec<String>) -> Self[src]

Constructs genres from vector

impl FromIterator<String> for Genres[src]

fn from_iter<T: IntoIterator<Item = String>>(iter: T) -> Self[src]

Constructs set of genres from iterator of strings

impl IntoIterator for Genres[src]

type Item = String

The type of the elements being iterated over.

type IntoIter = IntoIter<Self::Item>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Convert genres to iterator

Auto Trait Implementations

impl RefUnwindSafe for Genres

impl Send for Genres

impl Sync for Genres

impl Unpin for Genres

impl UnwindSafe for Genres

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.