Struct booklibrs::books::genres::Genres [−][src]
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]
impl From<HashSet<String, RandomState>> for Genres
[src]
impl From<Vec<String, Global>> for Genres
[src]
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]
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]
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,