[][src]Struct serde_mangadex::langs::LanguageSet

pub struct LanguageSet(_);

A bit set of for filtering and/or smaller costs of storage.

Methods

impl LanguageSet[src]

pub fn new() -> Self[src]

pub fn has<T: Into<Language>>(self, other: T) -> bool[src]

Self contains type

pub fn contains<T: Into<Self>>(self, other: T) -> bool[src]

Self is contained in part by other

pub fn contained<T: Into<Self>>(self, other: T) -> bool[src]

Self is contained in full by other

Trait Implementations

impl AddAssign<Language> for LanguageSet[src]

Utility for adding type to this bit set

impl BitAnd<LanguageSet> for LanguageSet[src]

Utility for the intersection of two sets

type Output = Self

The resulting type after applying the & operator.

impl BitOr<LanguageSet> for LanguageSet[src]

Utility for combining two sets

type Output = Self

The resulting type after applying the | operator.

impl BitOrAssign<LanguageSet> for LanguageSet[src]

Utility for combining two sets

impl BitXor<LanguageSet> for LanguageSet[src]

Utility for the difference of two sets

type Output = Self

The resulting type after applying the ^ operator.

impl Clone for LanguageSet[src]

impl Copy for LanguageSet[src]

impl Debug for LanguageSet[src]

impl Default for LanguageSet[src]

impl<'de> Deserialize<'de> for LanguageSet[src]

impl Eq for LanguageSet[src]

impl<T: Into<LanguageSet>> From<Option<T>> for LanguageSet[src]

Utility for converting an optional type into a set of itself (with full state if none)

impl<T: Into<Language>> From<T> for LanguageSet[src]

Utility for converting a single type into a set of itself

impl<T: Into<Language>> From<Vec<T>> for LanguageSet[src]

Utility for converting a list of type-alike into a set of type

impl<T: Into<Language>> FromIterator<T> for LanguageSet[src]

Utility for converting an iterable of type-alike into a set of type

impl Not for LanguageSet[src]

Utility for the opposite of this set

type Output = Self

The resulting type after applying the ! operator.

impl Ord for LanguageSet[src]

impl PartialEq<LanguageSet> for LanguageSet[src]

impl PartialOrd<LanguageSet> for LanguageSet[src]

impl Serialize for LanguageSet[src]

impl StructuralEq for LanguageSet[src]

impl StructuralPartialEq for LanguageSet[src]

impl SubAssign<Language> for LanguageSet[src]

Utility for removing type from this bit set

Auto Trait Implementations

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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.