Struct sdl2::messagebox::MessageBoxFlag
source · pub struct MessageBoxFlag { /* private fields */ }
Implementations
sourceimpl MessageBoxFlag
impl MessageBoxFlag
sourcepub fn empty() -> MessageBoxFlag
pub fn empty() -> MessageBoxFlag
Returns an empty set of flags.
sourcepub fn all() -> MessageBoxFlag
pub fn all() -> MessageBoxFlag
Returns the set containing all flags.
sourcepub 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.
sourcepub fn from_bits_truncate(bits: u32) -> MessageBoxFlag
pub fn from_bits_truncate(bits: u32) -> MessageBoxFlag
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub fn intersects(&self, other: MessageBoxFlag) -> bool
pub fn intersects(&self, other: MessageBoxFlag) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub fn contains(&self, other: MessageBoxFlag) -> bool
pub fn contains(&self, other: MessageBoxFlag) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: MessageBoxFlag)
pub fn insert(&mut self, other: MessageBoxFlag)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: MessageBoxFlag)
pub fn remove(&mut self, other: MessageBoxFlag)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: MessageBoxFlag)
pub fn toggle(&mut self, other: MessageBoxFlag)
Toggles the specified flags in-place.
Trait Implementations
sourceimpl BitAnd<MessageBoxFlag> for MessageBoxFlag
impl BitAnd<MessageBoxFlag> for MessageBoxFlag
sourcefn bitand(self, other: MessageBoxFlag) -> MessageBoxFlag
fn bitand(self, other: MessageBoxFlag) -> MessageBoxFlag
Returns the intersection between the two sets of flags.
type Output = MessageBoxFlag
type Output = MessageBoxFlag
&
operator.sourceimpl BitAndAssign<MessageBoxFlag> for MessageBoxFlag
impl BitAndAssign<MessageBoxFlag> for MessageBoxFlag
sourcefn bitand_assign(&mut self, other: MessageBoxFlag)
fn bitand_assign(&mut self, other: MessageBoxFlag)
Disables all flags disabled in the set.
sourceimpl BitOr<MessageBoxFlag> for MessageBoxFlag
impl BitOr<MessageBoxFlag> for MessageBoxFlag
sourcefn bitor(self, other: MessageBoxFlag) -> MessageBoxFlag
fn bitor(self, other: MessageBoxFlag) -> MessageBoxFlag
Returns the union of the two sets of flags.
type Output = MessageBoxFlag
type Output = MessageBoxFlag
|
operator.sourceimpl BitOrAssign<MessageBoxFlag> for MessageBoxFlag
impl BitOrAssign<MessageBoxFlag> for MessageBoxFlag
sourcefn bitor_assign(&mut self, other: MessageBoxFlag)
fn bitor_assign(&mut self, other: MessageBoxFlag)
Adds the set of flags.
sourceimpl BitXor<MessageBoxFlag> for MessageBoxFlag
impl BitXor<MessageBoxFlag> for MessageBoxFlag
sourcefn bitxor(self, other: MessageBoxFlag) -> MessageBoxFlag
fn bitxor(self, other: MessageBoxFlag) -> MessageBoxFlag
Returns the left flags, but with all the right flags toggled.
type Output = MessageBoxFlag
type Output = MessageBoxFlag
^
operator.sourceimpl BitXorAssign<MessageBoxFlag> for MessageBoxFlag
impl BitXorAssign<MessageBoxFlag> for MessageBoxFlag
sourcefn bitxor_assign(&mut self, other: MessageBoxFlag)
fn bitxor_assign(&mut self, other: MessageBoxFlag)
Toggles the set of flags.
sourceimpl Clone for MessageBoxFlag
impl Clone for MessageBoxFlag
sourcefn clone(&self) -> MessageBoxFlag
fn clone(&self) -> MessageBoxFlag
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for MessageBoxFlag
impl Debug for MessageBoxFlag
sourceimpl Extend<MessageBoxFlag> for MessageBoxFlag
impl Extend<MessageBoxFlag> for MessageBoxFlag
sourcefn extend<T: IntoIterator<Item = MessageBoxFlag>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = MessageBoxFlag>>(&mut self, iterator: T)
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)sourceimpl FromIterator<MessageBoxFlag> for MessageBoxFlag
impl FromIterator<MessageBoxFlag> for MessageBoxFlag
sourcefn from_iter<T: IntoIterator<Item = MessageBoxFlag>>(
iterator: T
) -> MessageBoxFlag
fn from_iter<T: IntoIterator<Item = MessageBoxFlag>>(
iterator: T
) -> MessageBoxFlag
sourceimpl Hash for MessageBoxFlag
impl Hash for MessageBoxFlag
sourceimpl Not for MessageBoxFlag
impl Not for MessageBoxFlag
sourcefn not(self) -> MessageBoxFlag
fn not(self) -> MessageBoxFlag
Returns the complement of this set of flags.
type Output = MessageBoxFlag
type Output = MessageBoxFlag
!
operator.sourceimpl Ord for MessageBoxFlag
impl Ord for MessageBoxFlag
sourcefn cmp(&self, other: &MessageBoxFlag) -> Ordering
fn cmp(&self, other: &MessageBoxFlag) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
sourceimpl PartialEq<MessageBoxFlag> for MessageBoxFlag
impl PartialEq<MessageBoxFlag> for MessageBoxFlag
sourcefn eq(&self, other: &MessageBoxFlag) -> bool
fn eq(&self, other: &MessageBoxFlag) -> bool
sourceimpl PartialOrd<MessageBoxFlag> for MessageBoxFlag
impl PartialOrd<MessageBoxFlag> for MessageBoxFlag
sourcefn partial_cmp(&self, other: &MessageBoxFlag) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageBoxFlag) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl Sub<MessageBoxFlag> for MessageBoxFlag
impl Sub<MessageBoxFlag> for MessageBoxFlag
sourcefn sub(self, other: MessageBoxFlag) -> MessageBoxFlag
fn sub(self, other: MessageBoxFlag) -> MessageBoxFlag
Returns the set difference of the two sets of flags.
type Output = MessageBoxFlag
type Output = MessageBoxFlag
-
operator.sourceimpl SubAssign<MessageBoxFlag> for MessageBoxFlag
impl SubAssign<MessageBoxFlag> for MessageBoxFlag
sourcefn sub_assign(&mut self, other: MessageBoxFlag)
fn sub_assign(&mut self, other: MessageBoxFlag)
Disables all flags enabled in the set.