pub struct RecentFilterFlags { /* private fields */ }
Implementations§
Source§impl RecentFilterFlags
impl RecentFilterFlags
pub const URI: RecentFilterFlags
pub const DISPLAY_NAME: RecentFilterFlags
pub const MIME_TYPE: RecentFilterFlags
pub const APPLICATION: RecentFilterFlags
pub const GROUP: RecentFilterFlags
pub const AGE: RecentFilterFlags
Sourcepub const fn empty() -> RecentFilterFlags
pub const fn empty() -> RecentFilterFlags
Returns an empty set of flags
Sourcepub const fn all() -> RecentFilterFlags
pub const fn all() -> RecentFilterFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<RecentFilterFlags>
pub fn from_bits(bits: u32) -> Option<RecentFilterFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> RecentFilterFlags
pub const fn from_bits_truncate(bits: u32) -> RecentFilterFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> RecentFilterFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> RecentFilterFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: RecentFilterFlags) -> bool
pub const fn intersects(&self, other: RecentFilterFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: RecentFilterFlags) -> bool
pub const fn contains(&self, other: RecentFilterFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: RecentFilterFlags)
pub fn insert(&mut self, other: RecentFilterFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: RecentFilterFlags)
pub fn remove(&mut self, other: RecentFilterFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: RecentFilterFlags)
pub fn toggle(&mut self, other: RecentFilterFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: RecentFilterFlags, value: bool)
pub fn set(&mut self, other: RecentFilterFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for RecentFilterFlags
impl Binary for RecentFilterFlags
Source§impl BitAnd for RecentFilterFlags
impl BitAnd for RecentFilterFlags
Source§fn bitand(self, other: RecentFilterFlags) -> RecentFilterFlags
fn bitand(self, other: RecentFilterFlags) -> RecentFilterFlags
Returns the intersection between the two sets of flags.
Source§type Output = RecentFilterFlags
type Output = RecentFilterFlags
&
operator.Source§impl BitAndAssign for RecentFilterFlags
impl BitAndAssign for RecentFilterFlags
Source§fn bitand_assign(&mut self, other: RecentFilterFlags)
fn bitand_assign(&mut self, other: RecentFilterFlags)
Disables all flags disabled in the set.
Source§impl BitOr for RecentFilterFlags
impl BitOr for RecentFilterFlags
Source§fn bitor(self, other: RecentFilterFlags) -> RecentFilterFlags
fn bitor(self, other: RecentFilterFlags) -> RecentFilterFlags
Returns the union of the two sets of flags.
Source§type Output = RecentFilterFlags
type Output = RecentFilterFlags
|
operator.Source§impl BitOrAssign for RecentFilterFlags
impl BitOrAssign for RecentFilterFlags
Source§fn bitor_assign(&mut self, other: RecentFilterFlags)
fn bitor_assign(&mut self, other: RecentFilterFlags)
Adds the set of flags.
Source§impl BitXor for RecentFilterFlags
impl BitXor for RecentFilterFlags
Source§fn bitxor(self, other: RecentFilterFlags) -> RecentFilterFlags
fn bitxor(self, other: RecentFilterFlags) -> RecentFilterFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = RecentFilterFlags
type Output = RecentFilterFlags
^
operator.Source§impl BitXorAssign for RecentFilterFlags
impl BitXorAssign for RecentFilterFlags
Source§fn bitxor_assign(&mut self, other: RecentFilterFlags)
fn bitxor_assign(&mut self, other: RecentFilterFlags)
Toggles the set of flags.
Source§impl Clone for RecentFilterFlags
impl Clone for RecentFilterFlags
Source§fn clone(&self) -> RecentFilterFlags
fn clone(&self) -> RecentFilterFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RecentFilterFlags
impl Debug for RecentFilterFlags
Source§impl Extend<RecentFilterFlags> for RecentFilterFlags
impl Extend<RecentFilterFlags> for RecentFilterFlags
Source§fn extend<T: IntoIterator<Item = RecentFilterFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = RecentFilterFlags>>(&mut self, iterator: T)
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 FromIterator<RecentFilterFlags> for RecentFilterFlags
impl FromIterator<RecentFilterFlags> for RecentFilterFlags
Source§fn from_iter<T: IntoIterator<Item = RecentFilterFlags>>(
iterator: T,
) -> RecentFilterFlags
fn from_iter<T: IntoIterator<Item = RecentFilterFlags>>( iterator: T, ) -> RecentFilterFlags
Source§impl<'a> FromValue<'a> for RecentFilterFlags
impl<'a> FromValue<'a> for RecentFilterFlags
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for RecentFilterFlags
impl<'a> FromValueOptional<'a> for RecentFilterFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Hash for RecentFilterFlags
impl Hash for RecentFilterFlags
Source§impl LowerHex for RecentFilterFlags
impl LowerHex for RecentFilterFlags
Source§impl Not for RecentFilterFlags
impl Not for RecentFilterFlags
Source§fn not(self) -> RecentFilterFlags
fn not(self) -> RecentFilterFlags
Returns the complement of this set of flags.
Source§type Output = RecentFilterFlags
type Output = RecentFilterFlags
!
operator.Source§impl Octal for RecentFilterFlags
impl Octal for RecentFilterFlags
Source§impl Ord for RecentFilterFlags
impl Ord for RecentFilterFlags
Source§fn cmp(&self, other: &RecentFilterFlags) -> Ordering
fn cmp(&self, other: &RecentFilterFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RecentFilterFlags
impl PartialEq for RecentFilterFlags
Source§impl PartialOrd for RecentFilterFlags
impl PartialOrd for RecentFilterFlags
Source§impl SetValue for RecentFilterFlags
impl SetValue for RecentFilterFlags
Source§impl StaticType for RecentFilterFlags
impl StaticType for RecentFilterFlags
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Sub for RecentFilterFlags
impl Sub for RecentFilterFlags
Source§fn sub(self, other: RecentFilterFlags) -> RecentFilterFlags
fn sub(self, other: RecentFilterFlags) -> RecentFilterFlags
Returns the set difference of the two sets of flags.
Source§type Output = RecentFilterFlags
type Output = RecentFilterFlags
-
operator.Source§impl SubAssign for RecentFilterFlags
impl SubAssign for RecentFilterFlags
Source§fn sub_assign(&mut self, other: RecentFilterFlags)
fn sub_assign(&mut self, other: RecentFilterFlags)
Disables all flags enabled in the set.
Source§impl UpperHex for RecentFilterFlags
impl UpperHex for RecentFilterFlags
impl Copy for RecentFilterFlags
impl Eq for RecentFilterFlags
impl StructuralPartialEq for RecentFilterFlags
Auto Trait Implementations§
impl Freeze for RecentFilterFlags
impl RefUnwindSafe for RecentFilterFlags
impl Send for RecentFilterFlags
impl Sync for RecentFilterFlags
impl Unpin for RecentFilterFlags
impl UnwindSafe for RecentFilterFlags
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> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.