[][src]Struct serde_mangadex::genres::GenreSet

pub struct GenreSet(_);

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

Methods

impl GenreSet[src]

pub fn new() -> Self[src]

pub fn has<T: Into<Genre>>(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<Genre> for GenreSet[src]

Utility for adding type to this bit set

impl BitAnd<GenreSet> for GenreSet[src]

Utility for the intersection of two sets

type Output = Self

The resulting type after applying the & operator.

impl BitOr<GenreSet> for GenreSet[src]

Utility for combining two sets

type Output = Self

The resulting type after applying the | operator.

impl BitOrAssign<GenreSet> for GenreSet[src]

Utility for combining two sets

impl BitXor<GenreSet> for GenreSet[src]

Utility for the difference of two sets

type Output = Self

The resulting type after applying the ^ operator.

impl Clone for GenreSet[src]

impl Copy for GenreSet[src]

impl Debug for GenreSet[src]

impl Default for GenreSet[src]

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

impl Eq for GenreSet[src]

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

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

impl<T: Into<Genre>> From<T> for GenreSet[src]

Utility for converting a single type into a set of itself

impl<T: Into<Genre>> From<Vec<T>> for GenreSet[src]

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

impl Not for GenreSet[src]

Utility for the opposite of this set

type Output = Self

The resulting type after applying the ! operator.

impl Ord for GenreSet[src]

impl PartialEq<GenreSet> for GenreSet[src]

impl PartialOrd<GenreSet> for GenreSet[src]

impl Serialize for GenreSet[src]

impl StructuralEq for GenreSet[src]

impl StructuralPartialEq for GenreSet[src]

impl SubAssign<Genre> for GenreSet[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.