Enum booklibrs::Lang[][src]

pub enum Lang {
    English,
    Russian,
}

Language. Helps to choose preferred language

Variants

English
Russian

Implementations

impl Lang[src]

pub fn new() -> Self[src]

Creates new localization. Reads from file

pub fn change(new_lang: Lang)[src]

Changes language in file

Trait Implementations

impl Clone for Lang[src]

impl Copy for Lang[src]

impl Debug for Lang[src]

impl Default for Lang[src]

fn default() -> Self[src]

Creates default localization. By default it's english

impl Eq for Lang[src]

impl PartialEq<Lang> for Lang[src]

impl StructuralEq for Lang[src]

impl StructuralPartialEq for Lang[src]

Auto Trait Implementations

impl RefUnwindSafe for Lang

impl Send for Lang

impl Sync for Lang

impl Unpin for Lang

impl UnwindSafe for Lang

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.