[]Struct atk::HyperlinkStateFlags

pub struct HyperlinkStateFlags { /* fields omitted */ }

Methods

impl HyperlinkStateFlags

pub const INLINE: HyperlinkStateFlags

pub fn empty() -> HyperlinkStateFlags

Returns an empty set of flags.

pub fn all() -> HyperlinkStateFlags

Returns the set containing all flags.

pub fn bits(&self) -> u32

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<HyperlinkStateFlags>

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

pub fn from_bits_truncate(bits: u32) -> HyperlinkStateFlags

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

pub fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

pub fn is_all(&self) -> bool

Returns true if all flags are currently set.

pub fn intersects(&self, other: HyperlinkStateFlags) -> bool

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

pub fn contains(&self, other: HyperlinkStateFlags) -> bool

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

pub fn insert(&mut self, other: HyperlinkStateFlags)

Inserts the specified flags in-place.

pub fn remove(&mut self, other: HyperlinkStateFlags)

Removes the specified flags in-place.

pub fn toggle(&mut self, other: HyperlinkStateFlags)

Toggles the specified flags in-place.

pub fn set(&mut self, other: HyperlinkStateFlags, value: bool)

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Extend<HyperlinkStateFlags> for HyperlinkStateFlags

impl Clone for HyperlinkStateFlags

impl Copy for HyperlinkStateFlags

impl Eq for HyperlinkStateFlags

impl Ord for HyperlinkStateFlags

impl PartialEq<HyperlinkStateFlags> for HyperlinkStateFlags

impl PartialOrd<HyperlinkStateFlags> for HyperlinkStateFlags

impl Debug for HyperlinkStateFlags

impl Sub<HyperlinkStateFlags> for HyperlinkStateFlags

type Output = HyperlinkStateFlags

The resulting type after applying the - operator.

fn sub(self, other: HyperlinkStateFlags) -> HyperlinkStateFlags

Returns the set difference of the two sets of flags.

impl SubAssign<HyperlinkStateFlags> for HyperlinkStateFlags

fn sub_assign(&mut self, other: HyperlinkStateFlags)

Disables all flags enabled in the set.

impl Not for HyperlinkStateFlags

type Output = HyperlinkStateFlags

The resulting type after applying the ! operator.

fn not(self) -> HyperlinkStateFlags

Returns the complement of this set of flags.

impl BitAnd<HyperlinkStateFlags> for HyperlinkStateFlags

type Output = HyperlinkStateFlags

The resulting type after applying the & operator.

fn bitand(self, other: HyperlinkStateFlags) -> HyperlinkStateFlags

Returns the intersection between the two sets of flags.

impl BitOr<HyperlinkStateFlags> for HyperlinkStateFlags

type Output = HyperlinkStateFlags

The resulting type after applying the | operator.

fn bitor(self, other: HyperlinkStateFlags) -> HyperlinkStateFlags

Returns the union of the two sets of flags.

impl BitXor<HyperlinkStateFlags> for HyperlinkStateFlags

type Output = HyperlinkStateFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: HyperlinkStateFlags) -> HyperlinkStateFlags

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

impl BitAndAssign<HyperlinkStateFlags> for HyperlinkStateFlags

fn bitand_assign(&mut self, other: HyperlinkStateFlags)

Disables all flags disabled in the set.

impl BitOrAssign<HyperlinkStateFlags> for HyperlinkStateFlags

fn bitor_assign(&mut self, other: HyperlinkStateFlags)

Adds the set of flags.

impl BitXorAssign<HyperlinkStateFlags> for HyperlinkStateFlags

fn bitxor_assign(&mut self, other: HyperlinkStateFlags)

Toggles the set of flags.

impl Hash for HyperlinkStateFlags

impl StructuralPartialEq for HyperlinkStateFlags

impl StructuralEq for HyperlinkStateFlags

impl FromIterator<HyperlinkStateFlags> for HyperlinkStateFlags

impl Octal for HyperlinkStateFlags

impl Binary for HyperlinkStateFlags

impl LowerHex for HyperlinkStateFlags

impl UpperHex for HyperlinkStateFlags

impl StaticType for HyperlinkStateFlags[src]

impl<'a> FromValue<'a> for HyperlinkStateFlags[src]

impl<'a> FromValueOptional<'a> for HyperlinkStateFlags[src]

impl SetValue for HyperlinkStateFlags[src]

Auto Trait Implementations

impl Send for HyperlinkStateFlags

impl Sync for HyperlinkStateFlags

impl Unpin for HyperlinkStateFlags

impl UnwindSafe for HyperlinkStateFlags

impl RefUnwindSafe for HyperlinkStateFlags

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]