Struct ggez::event::Mod [] [src]

pub struct Mod { /* fields omitted */ }

Methods

impl Mod
[src]

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Trait Implementations

impl Clone for Mod
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialOrd<Mod> for Mod
[src]

impl Extend<Mod> for Mod
[src]

impl BitOr<Mod> for Mod
[src]

Returns the union of the two sets of flags.

impl Copy for Mod
[src]

impl Ord for Mod
[src]

impl BitXorAssign<Mod> for Mod
[src]

Toggles the set of flags.

impl BitOrAssign<Mod> for Mod
[src]

Adds the set of flags.

impl PartialEq<Mod> for Mod
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Sub<Mod> for Mod
[src]

Returns the set difference of the two sets of flags.

impl BitAnd<Mod> for Mod
[src]

Returns the intersection between the two sets of flags.

impl BitXor<Mod> for Mod
[src]

Returns the left flags, but with all the right flags toggled.

impl Eq for Mod
[src]

impl SubAssign<Mod> for Mod
[src]

Disables all flags enabled in the set.

impl FromIterator<Mod> for Mod
[src]

impl Hash for Mod
[src]

impl BitAndAssign<Mod> for Mod
[src]

Disables all flags disabled in the set.

impl Not for Mod
[src]

Returns the complement of this set of flags.

impl Debug for Mod
[src]

Formats the value using the given formatter.