Struct sdl2::messagebox::MessageBoxFlag [−]
pub struct MessageBoxFlag { /* fields omitted */ }Methods
impl MessageBoxFlag
impl MessageBoxFlagpub fn empty() -> MessageBoxFlag
pub fn empty() -> MessageBoxFlagReturns an empty set of flags.
pub fn all() -> MessageBoxFlag
pub fn all() -> MessageBoxFlagReturns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<MessageBoxFlag>
pub fn from_bits(bits: u32) -> Option<MessageBoxFlag>Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> MessageBoxFlag
pub fn from_bits_truncate(bits: u32) -> MessageBoxFlagConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: MessageBoxFlag) -> bool
pub fn intersects(&self, other: MessageBoxFlag) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: MessageBoxFlag) -> bool
pub fn contains(&self, other: MessageBoxFlag) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: MessageBoxFlag)
pub fn insert(&mut self, other: MessageBoxFlag)Inserts the specified flags in-place.
pub fn remove(&mut self, other: MessageBoxFlag)
pub fn remove(&mut self, other: MessageBoxFlag)Removes the specified flags in-place.
pub fn toggle(&mut self, other: MessageBoxFlag)
pub fn toggle(&mut self, other: MessageBoxFlag)Toggles the specified flags in-place.
Trait Implementations
impl Copy for MessageBoxFlag
impl Copy for MessageBoxFlagimpl PartialEq for MessageBoxFlag
impl PartialEq for MessageBoxFlagfn eq(&self, other: &MessageBoxFlag) -> bool
fn eq(&self, other: &MessageBoxFlag) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &MessageBoxFlag) -> bool
fn ne(&self, other: &MessageBoxFlag) -> boolThis method tests for !=.
impl Eq for MessageBoxFlag
impl Eq for MessageBoxFlagimpl Clone for MessageBoxFlag
impl Clone for MessageBoxFlagfn clone(&self) -> MessageBoxFlag
fn clone(&self) -> MessageBoxFlagReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialOrd for MessageBoxFlag
impl PartialOrd for MessageBoxFlagfn partial_cmp(&self, other: &MessageBoxFlag) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageBoxFlag) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &MessageBoxFlag) -> bool
fn lt(&self, other: &MessageBoxFlag) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &MessageBoxFlag) -> bool
fn le(&self, other: &MessageBoxFlag) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &MessageBoxFlag) -> bool
fn gt(&self, other: &MessageBoxFlag) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &MessageBoxFlag) -> bool
fn ge(&self, other: &MessageBoxFlag) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for MessageBoxFlag
impl Ord for MessageBoxFlagfn cmp(&self, other: &MessageBoxFlag) -> Ordering
fn cmp(&self, other: &MessageBoxFlag) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for MessageBoxFlag
impl Hash for MessageBoxFlagfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for MessageBoxFlag
impl Debug for MessageBoxFlagimpl BitOr for MessageBoxFlag
impl BitOr for MessageBoxFlagtype Output = MessageBoxFlag
The resulting type after applying the | operator.
fn bitor(self, other: MessageBoxFlag) -> MessageBoxFlag
fn bitor(self, other: MessageBoxFlag) -> MessageBoxFlagReturns the union of the two sets of flags.
impl BitOrAssign for MessageBoxFlag
impl BitOrAssign for MessageBoxFlagfn bitor_assign(&mut self, other: MessageBoxFlag)
fn bitor_assign(&mut self, other: MessageBoxFlag)Adds the set of flags.
impl BitXor for MessageBoxFlag
impl BitXor for MessageBoxFlagtype Output = MessageBoxFlag
The resulting type after applying the ^ operator.
fn bitxor(self, other: MessageBoxFlag) -> MessageBoxFlag
fn bitxor(self, other: MessageBoxFlag) -> MessageBoxFlagReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for MessageBoxFlag
impl BitXorAssign for MessageBoxFlagfn bitxor_assign(&mut self, other: MessageBoxFlag)
fn bitxor_assign(&mut self, other: MessageBoxFlag)Toggles the set of flags.
impl BitAnd for MessageBoxFlag
impl BitAnd for MessageBoxFlagtype Output = MessageBoxFlag
The resulting type after applying the & operator.
fn bitand(self, other: MessageBoxFlag) -> MessageBoxFlag
fn bitand(self, other: MessageBoxFlag) -> MessageBoxFlagReturns the intersection between the two sets of flags.
impl BitAndAssign for MessageBoxFlag
impl BitAndAssign for MessageBoxFlagfn bitand_assign(&mut self, other: MessageBoxFlag)
fn bitand_assign(&mut self, other: MessageBoxFlag)Disables all flags disabled in the set.
impl Sub for MessageBoxFlag
impl Sub for MessageBoxFlagtype Output = MessageBoxFlag
The resulting type after applying the - operator.
fn sub(self, other: MessageBoxFlag) -> MessageBoxFlag
fn sub(self, other: MessageBoxFlag) -> MessageBoxFlagReturns the set difference of the two sets of flags.
impl SubAssign for MessageBoxFlag
impl SubAssign for MessageBoxFlagfn sub_assign(&mut self, other: MessageBoxFlag)
fn sub_assign(&mut self, other: MessageBoxFlag)Disables all flags enabled in the set.
impl Not for MessageBoxFlag
impl Not for MessageBoxFlagtype Output = MessageBoxFlag
The resulting type after applying the ! operator.
fn not(self) -> MessageBoxFlag
fn not(self) -> MessageBoxFlagReturns the complement of this set of flags.
impl Extend<MessageBoxFlag> for MessageBoxFlag
impl Extend<MessageBoxFlag> for MessageBoxFlagfn extend<T: IntoIterator<Item = MessageBoxFlag>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = MessageBoxFlag>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<MessageBoxFlag> for MessageBoxFlag
impl FromIterator<MessageBoxFlag> for MessageBoxFlagfn from_iter<T: IntoIterator<Item = MessageBoxFlag>>(
iterator: T
) -> MessageBoxFlag
fn from_iter<T: IntoIterator<Item = MessageBoxFlag>>(
iterator: T
) -> MessageBoxFlagCreates a value from an iterator. Read more
Auto Trait Implementations
impl Send for MessageBoxFlag
impl Send for MessageBoxFlagimpl Sync for MessageBoxFlag
impl Sync for MessageBoxFlag