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