Struct gtk::TextSearchFlags
source · [−]pub struct TextSearchFlags { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Binary for TextSearchFlags
impl Binary for TextSearchFlags
sourceimpl BitAnd<TextSearchFlags> for TextSearchFlags
impl BitAnd<TextSearchFlags> for TextSearchFlags
sourcefn bitand(self, other: TextSearchFlags) -> TextSearchFlags
fn bitand(self, other: TextSearchFlags) -> TextSearchFlags
Returns the intersection between the two sets of flags.
type Output = TextSearchFlags
type Output = TextSearchFlags
& operator.sourceimpl BitAndAssign<TextSearchFlags> for TextSearchFlags
impl BitAndAssign<TextSearchFlags> for TextSearchFlags
sourcefn bitand_assign(&mut self, other: TextSearchFlags)
fn bitand_assign(&mut self, other: TextSearchFlags)
Disables all flags disabled in the set.
sourceimpl BitOr<TextSearchFlags> for TextSearchFlags
impl BitOr<TextSearchFlags> for TextSearchFlags
sourcefn bitor(self, other: TextSearchFlags) -> TextSearchFlags
fn bitor(self, other: TextSearchFlags) -> TextSearchFlags
Returns the union of the two sets of flags.
type Output = TextSearchFlags
type Output = TextSearchFlags
| operator.sourceimpl BitOrAssign<TextSearchFlags> for TextSearchFlags
impl BitOrAssign<TextSearchFlags> for TextSearchFlags
sourcefn bitor_assign(&mut self, other: TextSearchFlags)
fn bitor_assign(&mut self, other: TextSearchFlags)
Adds the set of flags.
sourceimpl BitXor<TextSearchFlags> for TextSearchFlags
impl BitXor<TextSearchFlags> for TextSearchFlags
sourcefn bitxor(self, other: TextSearchFlags) -> TextSearchFlags
fn bitxor(self, other: TextSearchFlags) -> TextSearchFlags
Returns the left flags, but with all the right flags toggled.
type Output = TextSearchFlags
type Output = TextSearchFlags
^ operator.sourceimpl BitXorAssign<TextSearchFlags> for TextSearchFlags
impl BitXorAssign<TextSearchFlags> for TextSearchFlags
sourcefn bitxor_assign(&mut self, other: TextSearchFlags)
fn bitxor_assign(&mut self, other: TextSearchFlags)
Toggles the set of flags.
sourceimpl Clone for TextSearchFlags
impl Clone for TextSearchFlags
sourcefn clone(&self) -> TextSearchFlags
fn clone(&self) -> TextSearchFlags
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for TextSearchFlags
impl Debug for TextSearchFlags
sourceimpl Extend<TextSearchFlags> for TextSearchFlags
impl Extend<TextSearchFlags> for TextSearchFlags
sourcefn extend<T: IntoIterator<Item = TextSearchFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = TextSearchFlags>>(&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<TextSearchFlags> for TextSearchFlags
impl FromIterator<TextSearchFlags> for TextSearchFlags
sourcefn from_iter<T: IntoIterator<Item = TextSearchFlags>>(
iterator: T
) -> TextSearchFlags
fn from_iter<T: IntoIterator<Item = TextSearchFlags>>(
iterator: T
) -> TextSearchFlags
sourceimpl<'a> FromValue<'a> for TextSearchFlags
impl<'a> FromValue<'a> for TextSearchFlags
unsafe fn from_value(value: &Value) -> Self
sourceimpl<'a> FromValueOptional<'a> for TextSearchFlags
impl<'a> FromValueOptional<'a> for TextSearchFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Hash for TextSearchFlags
impl Hash for TextSearchFlags
sourceimpl LowerHex for TextSearchFlags
impl LowerHex for TextSearchFlags
sourceimpl Not for TextSearchFlags
impl Not for TextSearchFlags
sourcefn not(self) -> TextSearchFlags
fn not(self) -> TextSearchFlags
Returns the complement of this set of flags.
type Output = TextSearchFlags
type Output = TextSearchFlags
! operator.sourceimpl Octal for TextSearchFlags
impl Octal for TextSearchFlags
sourceimpl Ord for TextSearchFlags
impl Ord for TextSearchFlags
sourcefn cmp(&self, other: &TextSearchFlags) -> Ordering
fn cmp(&self, other: &TextSearchFlags) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<TextSearchFlags> for TextSearchFlags
impl PartialEq<TextSearchFlags> for TextSearchFlags
sourcefn eq(&self, other: &TextSearchFlags) -> bool
fn eq(&self, other: &TextSearchFlags) -> bool
sourceimpl PartialOrd<TextSearchFlags> for TextSearchFlags
impl PartialOrd<TextSearchFlags> for TextSearchFlags
sourcefn partial_cmp(&self, other: &TextSearchFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &TextSearchFlags) -> 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 StaticType for TextSearchFlags
impl StaticType for TextSearchFlags
sourcefn static_type() -> Type
fn static_type() -> Type
Self.sourceimpl Sub<TextSearchFlags> for TextSearchFlags
impl Sub<TextSearchFlags> for TextSearchFlags
sourcefn sub(self, other: TextSearchFlags) -> TextSearchFlags
fn sub(self, other: TextSearchFlags) -> TextSearchFlags
Returns the set difference of the two sets of flags.
type Output = TextSearchFlags
type Output = TextSearchFlags
- operator.sourceimpl SubAssign<TextSearchFlags> for TextSearchFlags
impl SubAssign<TextSearchFlags> for TextSearchFlags
sourcefn sub_assign(&mut self, other: TextSearchFlags)
fn sub_assign(&mut self, other: TextSearchFlags)
Disables all flags enabled in the set.
sourceimpl UpperHex for TextSearchFlags
impl UpperHex for TextSearchFlags
impl Copy for TextSearchFlags
impl Eq for TextSearchFlags
impl StructuralEq for TextSearchFlags
impl StructuralPartialEq for TextSearchFlags
Auto Trait Implementations
impl RefUnwindSafe for TextSearchFlags
impl Send for TextSearchFlags
impl Sync for TextSearchFlags
impl Unpin for TextSearchFlags
impl UnwindSafe for TextSearchFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.