Struct gtk::TreeModelFlags [−]
pub struct TreeModelFlags { /* fields omitted */ }Methods
impl TreeModelFlags
impl TreeModelFlagspub const ITERS_PERSIST: TreeModelFlags
ITERS_PERSIST: TreeModelFlags = TreeModelFlags{bits: 1,}
pub const LIST_ONLY: TreeModelFlags
LIST_ONLY: TreeModelFlags = TreeModelFlags{bits: 2,}
pub fn empty() -> TreeModelFlags
pub fn empty() -> TreeModelFlagsReturns an empty set of flags.
pub fn all() -> TreeModelFlags
pub fn all() -> TreeModelFlagsReturns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32Returns the raw value of the flags currently stored.
pub 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.
pub fn from_bits_truncate(bits: u32) -> TreeModelFlags
pub fn from_bits_truncate(bits: u32) -> TreeModelFlagsConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: TreeModelFlags) -> bool
pub fn intersects(&self, other: TreeModelFlags) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: TreeModelFlags) -> bool
pub fn contains(&self, other: TreeModelFlags) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: TreeModelFlags)
pub fn insert(&mut self, other: TreeModelFlags)Inserts the specified flags in-place.
pub fn remove(&mut self, other: TreeModelFlags)
pub fn remove(&mut self, other: TreeModelFlags)Removes the specified flags in-place.
pub fn toggle(&mut self, other: TreeModelFlags)
pub fn toggle(&mut self, other: TreeModelFlags)Toggles the specified flags in-place.
pub 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
impl Copy for TreeModelFlags
impl Copy for TreeModelFlagsimpl PartialEq for TreeModelFlags
impl PartialEq for TreeModelFlagsfn eq(&self, other: &TreeModelFlags) -> bool
fn eq(&self, other: &TreeModelFlags) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &TreeModelFlags) -> bool
fn ne(&self, other: &TreeModelFlags) -> boolThis method tests for !=.
impl Eq for TreeModelFlags
impl Eq for TreeModelFlagsimpl Clone for TreeModelFlags
impl Clone for TreeModelFlagsfn clone(&self) -> TreeModelFlags
fn clone(&self) -> TreeModelFlagsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialOrd for TreeModelFlags
impl PartialOrd for TreeModelFlagsfn partial_cmp(&self, other: &TreeModelFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &TreeModelFlags) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &TreeModelFlags) -> bool
fn lt(&self, other: &TreeModelFlags) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &TreeModelFlags) -> bool
fn le(&self, other: &TreeModelFlags) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &TreeModelFlags) -> bool
fn gt(&self, other: &TreeModelFlags) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &TreeModelFlags) -> bool
fn ge(&self, other: &TreeModelFlags) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for TreeModelFlags
impl Ord for TreeModelFlagsfn cmp(&self, other: &TreeModelFlags) -> Ordering
fn cmp(&self, other: &TreeModelFlags) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for TreeModelFlags
impl Hash for TreeModelFlagsfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for TreeModelFlags
impl Debug for TreeModelFlagsimpl Binary for TreeModelFlags
impl Binary for TreeModelFlagsimpl Octal for TreeModelFlags
impl Octal for TreeModelFlagsimpl LowerHex for TreeModelFlags
impl LowerHex for TreeModelFlagsimpl UpperHex for TreeModelFlags
impl UpperHex for TreeModelFlagsimpl BitOr for TreeModelFlags
impl BitOr for TreeModelFlagstype Output = TreeModelFlags
The resulting type after applying the | operator.
fn bitor(self, other: TreeModelFlags) -> TreeModelFlags
fn bitor(self, other: TreeModelFlags) -> TreeModelFlagsReturns the union of the two sets of flags.
impl BitOrAssign for TreeModelFlags
impl BitOrAssign for TreeModelFlagsfn bitor_assign(&mut self, other: TreeModelFlags)
fn bitor_assign(&mut self, other: TreeModelFlags)Adds the set of flags.
impl BitXor for TreeModelFlags
impl BitXor for TreeModelFlagstype Output = TreeModelFlags
The resulting type after applying the ^ operator.
fn bitxor(self, other: TreeModelFlags) -> TreeModelFlags
fn bitxor(self, other: TreeModelFlags) -> TreeModelFlagsReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for TreeModelFlags
impl BitXorAssign for TreeModelFlagsfn bitxor_assign(&mut self, other: TreeModelFlags)
fn bitxor_assign(&mut self, other: TreeModelFlags)Toggles the set of flags.
impl BitAnd for TreeModelFlags
impl BitAnd for TreeModelFlagstype Output = TreeModelFlags
The resulting type after applying the & operator.
fn bitand(self, other: TreeModelFlags) -> TreeModelFlags
fn bitand(self, other: TreeModelFlags) -> TreeModelFlagsReturns the intersection between the two sets of flags.
impl BitAndAssign for TreeModelFlags
impl BitAndAssign for TreeModelFlagsfn bitand_assign(&mut self, other: TreeModelFlags)
fn bitand_assign(&mut self, other: TreeModelFlags)Disables all flags disabled in the set.
impl Sub for TreeModelFlags
impl Sub for TreeModelFlagstype Output = TreeModelFlags
The resulting type after applying the - operator.
fn sub(self, other: TreeModelFlags) -> TreeModelFlags
fn sub(self, other: TreeModelFlags) -> TreeModelFlagsReturns the set difference of the two sets of flags.
impl SubAssign for TreeModelFlags
impl SubAssign for TreeModelFlagsfn sub_assign(&mut self, other: TreeModelFlags)
fn sub_assign(&mut self, other: TreeModelFlags)Disables all flags enabled in the set.
impl Not for TreeModelFlags
impl Not for TreeModelFlagstype Output = TreeModelFlags
The resulting type after applying the ! operator.
fn not(self) -> TreeModelFlags
fn not(self) -> TreeModelFlagsReturns the complement of this set of flags.
impl Extend<TreeModelFlags> for TreeModelFlags
impl Extend<TreeModelFlags> for TreeModelFlagsfn extend<T: IntoIterator<Item = TreeModelFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = TreeModelFlags>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<TreeModelFlags> for TreeModelFlags
impl FromIterator<TreeModelFlags> for TreeModelFlagsfn from_iter<T: IntoIterator<Item = TreeModelFlags>>(
iterator: T
) -> TreeModelFlags
fn from_iter<T: IntoIterator<Item = TreeModelFlags>>(
iterator: T
) -> TreeModelFlagsCreates a value from an iterator. Read more
impl StaticType for TreeModelFlags[src]
impl StaticType for TreeModelFlagsfn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.
impl<'a> FromValueOptional<'a> for TreeModelFlags[src]
impl<'a> FromValueOptional<'a> for TreeModelFlagsunsafe fn from_value_optional(value: &Value) -> Option<Self>[src]
unsafe fn from_value_optional(value: &Value) -> Option<Self>impl<'a> FromValue<'a> for TreeModelFlags[src]
impl<'a> FromValue<'a> for TreeModelFlagsunsafe fn from_value(value: &Value) -> Self[src]
unsafe fn from_value(value: &Value) -> Selfimpl SetValue for TreeModelFlags[src]
impl SetValue for TreeModelFlagsAuto Trait Implementations
impl Send for TreeModelFlags
impl Send for TreeModelFlagsimpl Sync for TreeModelFlags
impl Sync for TreeModelFlags