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