pub struct ContextMenuElementInformationFlags(<ContextMenuElementInformationFlags as PublicFlags>::Internal);Tuple Fields§
§0: <ContextMenuElementInformationFlags as PublicFlags>::InternalImplementations§
Source§impl ContextMenuElementInformationFlags
impl ContextMenuElementInformationFlags
Sourcepub const Link: ContextMenuElementInformationFlags
pub const Link: ContextMenuElementInformationFlags
Whether or not the element this context menu was activated for was a link.
Sourcepub const Image: ContextMenuElementInformationFlags
pub const Image: ContextMenuElementInformationFlags
Whether or not the element this context menu was activated for was an image.
Sourcepub const EditableText: ContextMenuElementInformationFlags
pub const EditableText: ContextMenuElementInformationFlags
Whether or not the element this context menu was activated for was editable text.
Sourcepub const Selection: ContextMenuElementInformationFlags
pub const Selection: ContextMenuElementInformationFlags
Whether or not the element this context menu was activated for was covered by a selection.
Source§impl ContextMenuElementInformationFlags
impl ContextMenuElementInformationFlags
Sourcepub const fn empty() -> ContextMenuElementInformationFlags
pub const fn empty() -> ContextMenuElementInformationFlags
Get a flags value with all bits unset.
Sourcepub const fn all() -> ContextMenuElementInformationFlags
pub const fn all() -> ContextMenuElementInformationFlags
Get a flags value with all known bits set.
Sourcepub const fn bits(&self) -> u8
pub const fn bits(&self) -> u8
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub const fn from_bits(bits: u8) -> Option<ContextMenuElementInformationFlags>
pub const fn from_bits(bits: u8) -> Option<ContextMenuElementInformationFlags>
Convert from a bits value.
This method will return None if any unknown bits are set.
Sourcepub const fn from_bits_truncate(bits: u8) -> ContextMenuElementInformationFlags
pub const fn from_bits_truncate(bits: u8) -> ContextMenuElementInformationFlags
Convert from a bits value, unsetting any unknown bits.
Sourcepub const fn from_bits_retain(bits: u8) -> ContextMenuElementInformationFlags
pub const fn from_bits_retain(bits: u8) -> ContextMenuElementInformationFlags
Convert from a bits value exactly.
Sourcepub fn from_name(name: &str) -> Option<ContextMenuElementInformationFlags>
pub fn from_name(name: &str) -> Option<ContextMenuElementInformationFlags>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
Sourcepub const fn intersects(
&self,
other: ContextMenuElementInformationFlags,
) -> bool
pub const fn intersects( &self, other: ContextMenuElementInformationFlags, ) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
Sourcepub const fn contains(&self, other: ContextMenuElementInformationFlags) -> bool
pub const fn contains(&self, other: ContextMenuElementInformationFlags) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
Sourcepub fn insert(&mut self, other: ContextMenuElementInformationFlags)
pub fn insert(&mut self, other: ContextMenuElementInformationFlags)
The bitwise or (|) of the bits in two flags values.
Sourcepub fn remove(&mut self, other: ContextMenuElementInformationFlags)
pub fn remove(&mut self, other: ContextMenuElementInformationFlags)
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
Sourcepub fn toggle(&mut self, other: ContextMenuElementInformationFlags)
pub fn toggle(&mut self, other: ContextMenuElementInformationFlags)
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub fn set(&mut self, other: ContextMenuElementInformationFlags, value: bool)
pub fn set(&mut self, other: ContextMenuElementInformationFlags, value: bool)
Call insert when value is true or remove when value is false.
Sourcepub const fn intersection(
self,
other: ContextMenuElementInformationFlags,
) -> ContextMenuElementInformationFlags
pub const fn intersection( self, other: ContextMenuElementInformationFlags, ) -> ContextMenuElementInformationFlags
The bitwise and (&) of the bits in two flags values.
Sourcepub const fn union(
self,
other: ContextMenuElementInformationFlags,
) -> ContextMenuElementInformationFlags
pub const fn union( self, other: ContextMenuElementInformationFlags, ) -> ContextMenuElementInformationFlags
The bitwise or (|) of the bits in two flags values.
Sourcepub const fn difference(
self,
other: ContextMenuElementInformationFlags,
) -> ContextMenuElementInformationFlags
pub const fn difference( self, other: ContextMenuElementInformationFlags, ) -> ContextMenuElementInformationFlags
The intersection of a source flags value with the complement of a target flags
value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Sourcepub const fn symmetric_difference(
self,
other: ContextMenuElementInformationFlags,
) -> ContextMenuElementInformationFlags
pub const fn symmetric_difference( self, other: ContextMenuElementInformationFlags, ) -> ContextMenuElementInformationFlags
The bitwise exclusive-or (^) of the bits in two flags values.
Sourcepub const fn complement(self) -> ContextMenuElementInformationFlags
pub const fn complement(self) -> ContextMenuElementInformationFlags
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§impl ContextMenuElementInformationFlags
impl ContextMenuElementInformationFlags
Sourcepub const fn iter(&self) -> Iter<ContextMenuElementInformationFlags>
pub const fn iter(&self) -> Iter<ContextMenuElementInformationFlags>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Sourcepub const fn iter_names(&self) -> IterNames<ContextMenuElementInformationFlags>
pub const fn iter_names(&self) -> IterNames<ContextMenuElementInformationFlags>
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
Source§impl BitAnd for ContextMenuElementInformationFlags
impl BitAnd for ContextMenuElementInformationFlags
Source§fn bitand(
self,
other: ContextMenuElementInformationFlags,
) -> ContextMenuElementInformationFlags
fn bitand( self, other: ContextMenuElementInformationFlags, ) -> ContextMenuElementInformationFlags
The bitwise and (&) of the bits in two flags values.
Source§type Output = ContextMenuElementInformationFlags
type Output = ContextMenuElementInformationFlags
& operator.Source§impl BitAndAssign for ContextMenuElementInformationFlags
impl BitAndAssign for ContextMenuElementInformationFlags
Source§fn bitand_assign(&mut self, other: ContextMenuElementInformationFlags)
fn bitand_assign(&mut self, other: ContextMenuElementInformationFlags)
The bitwise and (&) of the bits in two flags values.
Source§impl BitOr for ContextMenuElementInformationFlags
impl BitOr for ContextMenuElementInformationFlags
Source§fn bitor(
self,
other: ContextMenuElementInformationFlags,
) -> ContextMenuElementInformationFlags
fn bitor( self, other: ContextMenuElementInformationFlags, ) -> ContextMenuElementInformationFlags
The bitwise or (|) of the bits in two flags values.
Source§type Output = ContextMenuElementInformationFlags
type Output = ContextMenuElementInformationFlags
| operator.Source§impl BitOrAssign for ContextMenuElementInformationFlags
impl BitOrAssign for ContextMenuElementInformationFlags
Source§fn bitor_assign(&mut self, other: ContextMenuElementInformationFlags)
fn bitor_assign(&mut self, other: ContextMenuElementInformationFlags)
The bitwise or (|) of the bits in two flags values.
Source§impl BitXor for ContextMenuElementInformationFlags
impl BitXor for ContextMenuElementInformationFlags
Source§fn bitxor(
self,
other: ContextMenuElementInformationFlags,
) -> ContextMenuElementInformationFlags
fn bitxor( self, other: ContextMenuElementInformationFlags, ) -> ContextMenuElementInformationFlags
The bitwise exclusive-or (^) of the bits in two flags values.
Source§type Output = ContextMenuElementInformationFlags
type Output = ContextMenuElementInformationFlags
^ operator.Source§impl BitXorAssign for ContextMenuElementInformationFlags
impl BitXorAssign for ContextMenuElementInformationFlags
Source§fn bitxor_assign(&mut self, other: ContextMenuElementInformationFlags)
fn bitxor_assign(&mut self, other: ContextMenuElementInformationFlags)
The bitwise exclusive-or (^) of the bits in two flags values.
Source§impl Clone for ContextMenuElementInformationFlags
impl Clone for ContextMenuElementInformationFlags
Source§fn clone(&self) -> ContextMenuElementInformationFlags
fn clone(&self) -> ContextMenuElementInformationFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ContextMenuElementInformationFlags
impl Default for ContextMenuElementInformationFlags
Source§fn default() -> ContextMenuElementInformationFlags
fn default() -> ContextMenuElementInformationFlags
Source§impl<'de> Deserialize<'de> for ContextMenuElementInformationFlags
impl<'de> Deserialize<'de> for ContextMenuElementInformationFlags
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextMenuElementInformationFlags, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextMenuElementInformationFlags, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Extend<ContextMenuElementInformationFlags> for ContextMenuElementInformationFlags
impl Extend<ContextMenuElementInformationFlags> for ContextMenuElementInformationFlags
Source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ContextMenuElementInformationFlags>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ContextMenuElementInformationFlags>,
The bitwise or (|) of the bits in each flags value.
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl Flags for ContextMenuElementInformationFlags
impl Flags for ContextMenuElementInformationFlags
Source§const FLAGS: &'static [Flag<ContextMenuElementInformationFlags>]
const FLAGS: &'static [Flag<ContextMenuElementInformationFlags>]
Source§fn from_bits_retain(bits: u8) -> ContextMenuElementInformationFlags
fn from_bits_retain(bits: u8) -> ContextMenuElementInformationFlags
Source§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.Source§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
Source§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
Source§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
Source§fn iter_defined_names() -> IterDefinedNames<Self>
fn iter_defined_names() -> IterDefinedNames<Self>
Self::FLAGS.Source§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
Source§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
Source§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in two flags values.Source§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!). Read moreSource§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in two flags values.Source§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in two flags values.Source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!). Read moreSource§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in two flags values.Source§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in a flags value, truncating the result.Source§impl FromIterator<ContextMenuElementInformationFlags> for ContextMenuElementInformationFlags
impl FromIterator<ContextMenuElementInformationFlags> for ContextMenuElementInformationFlags
Source§fn from_iter<T>(iterator: T) -> ContextMenuElementInformationFlagswhere
T: IntoIterator<Item = ContextMenuElementInformationFlags>,
fn from_iter<T>(iterator: T) -> ContextMenuElementInformationFlagswhere
T: IntoIterator<Item = ContextMenuElementInformationFlags>,
The bitwise or (|) of the bits in each flags value.
Source§impl IntoIterator for ContextMenuElementInformationFlags
impl IntoIterator for ContextMenuElementInformationFlags
Source§type Item = ContextMenuElementInformationFlags
type Item = ContextMenuElementInformationFlags
Source§type IntoIter = Iter<ContextMenuElementInformationFlags>
type IntoIter = Iter<ContextMenuElementInformationFlags>
Source§fn into_iter(
self,
) -> <ContextMenuElementInformationFlags as IntoIterator>::IntoIter
fn into_iter( self, ) -> <ContextMenuElementInformationFlags as IntoIterator>::IntoIter
Source§impl Not for ContextMenuElementInformationFlags
impl Not for ContextMenuElementInformationFlags
Source§fn not(self) -> ContextMenuElementInformationFlags
fn not(self) -> ContextMenuElementInformationFlags
The bitwise negation (!) of the bits in a flags value, truncating the result.
Source§type Output = ContextMenuElementInformationFlags
type Output = ContextMenuElementInformationFlags
! operator.Source§impl PartialEq for ContextMenuElementInformationFlags
impl PartialEq for ContextMenuElementInformationFlags
Source§fn eq(&self, other: &ContextMenuElementInformationFlags) -> bool
fn eq(&self, other: &ContextMenuElementInformationFlags) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ContextMenuElementInformationFlags
impl Serialize for ContextMenuElementInformationFlags
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl Sub for ContextMenuElementInformationFlags
impl Sub for ContextMenuElementInformationFlags
Source§fn sub(
self,
other: ContextMenuElementInformationFlags,
) -> ContextMenuElementInformationFlags
fn sub( self, other: ContextMenuElementInformationFlags, ) -> ContextMenuElementInformationFlags
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Source§type Output = ContextMenuElementInformationFlags
type Output = ContextMenuElementInformationFlags
- operator.Source§impl SubAssign for ContextMenuElementInformationFlags
impl SubAssign for ContextMenuElementInformationFlags
Source§fn sub_assign(&mut self, other: ContextMenuElementInformationFlags)
fn sub_assign(&mut self, other: ContextMenuElementInformationFlags)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
impl Copy for ContextMenuElementInformationFlags
impl StructuralPartialEq for ContextMenuElementInformationFlags
Auto Trait Implementations§
impl Freeze for ContextMenuElementInformationFlags
impl RefUnwindSafe for ContextMenuElementInformationFlags
impl Send for ContextMenuElementInformationFlags
impl Sync for ContextMenuElementInformationFlags
impl Unpin for ContextMenuElementInformationFlags
impl UnwindSafe for ContextMenuElementInformationFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more