pub struct TreeModelFlags { /* private fields */ }
Implementations§
Source§impl 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§
Source§impl Binary for TreeModelFlags
impl Binary for TreeModelFlags
Source§impl BitAnd for TreeModelFlags
impl BitAnd for TreeModelFlags
Source§fn bitand(self, other: TreeModelFlags) -> TreeModelFlags
fn bitand(self, other: TreeModelFlags) -> TreeModelFlags
Returns the intersection between the two sets of flags.
Source§type Output = TreeModelFlags
type Output = TreeModelFlags
&
operator.Source§impl BitAndAssign for TreeModelFlags
impl BitAndAssign for TreeModelFlags
Source§fn bitand_assign(&mut self, other: TreeModelFlags)
fn bitand_assign(&mut self, other: TreeModelFlags)
Disables all flags disabled in the set.
Source§impl BitOr for TreeModelFlags
impl BitOr for TreeModelFlags
Source§fn bitor(self, other: TreeModelFlags) -> TreeModelFlags
fn bitor(self, other: TreeModelFlags) -> TreeModelFlags
Returns the union of the two sets of flags.
Source§type Output = TreeModelFlags
type Output = TreeModelFlags
|
operator.Source§impl BitOrAssign for TreeModelFlags
impl BitOrAssign for TreeModelFlags
Source§fn bitor_assign(&mut self, other: TreeModelFlags)
fn bitor_assign(&mut self, other: TreeModelFlags)
Adds the set of flags.
Source§impl BitXor for TreeModelFlags
impl BitXor for TreeModelFlags
Source§fn bitxor(self, other: TreeModelFlags) -> TreeModelFlags
fn bitxor(self, other: TreeModelFlags) -> TreeModelFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = TreeModelFlags
type Output = TreeModelFlags
^
operator.Source§impl BitXorAssign for TreeModelFlags
impl BitXorAssign for TreeModelFlags
Source§fn bitxor_assign(&mut self, other: TreeModelFlags)
fn bitxor_assign(&mut self, other: TreeModelFlags)
Toggles the set of flags.
Source§impl Clone for TreeModelFlags
impl Clone for TreeModelFlags
Source§fn clone(&self) -> TreeModelFlags
fn clone(&self) -> TreeModelFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TreeModelFlags
impl Debug for TreeModelFlags
Source§impl Extend<TreeModelFlags> for TreeModelFlags
impl Extend<TreeModelFlags> for TreeModelFlags
Source§fn extend<T: IntoIterator<Item = TreeModelFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = TreeModelFlags>>(&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<TreeModelFlags> for TreeModelFlags
impl FromIterator<TreeModelFlags> for TreeModelFlags
Source§fn from_iter<T: IntoIterator<Item = TreeModelFlags>>(
iterator: T,
) -> TreeModelFlags
fn from_iter<T: IntoIterator<Item = TreeModelFlags>>( iterator: T, ) -> TreeModelFlags
Source§impl<'a> FromValue<'a> for TreeModelFlags
impl<'a> FromValue<'a> for TreeModelFlags
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for TreeModelFlags
impl<'a> FromValueOptional<'a> for TreeModelFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Hash for TreeModelFlags
impl Hash for TreeModelFlags
Source§impl LowerHex for TreeModelFlags
impl LowerHex for TreeModelFlags
Source§impl Not for TreeModelFlags
impl Not for TreeModelFlags
Source§fn not(self) -> TreeModelFlags
fn not(self) -> TreeModelFlags
Returns the complement of this set of flags.
Source§type Output = TreeModelFlags
type Output = TreeModelFlags
!
operator.Source§impl Octal for TreeModelFlags
impl Octal for TreeModelFlags
Source§impl Ord for TreeModelFlags
impl Ord for TreeModelFlags
Source§fn cmp(&self, other: &TreeModelFlags) -> Ordering
fn cmp(&self, other: &TreeModelFlags) -> 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 TreeModelFlags
impl PartialEq for TreeModelFlags
Source§impl PartialOrd for TreeModelFlags
impl PartialOrd for TreeModelFlags
Source§impl StaticType for TreeModelFlags
impl StaticType for TreeModelFlags
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Sub for TreeModelFlags
impl Sub for TreeModelFlags
Source§fn sub(self, other: TreeModelFlags) -> TreeModelFlags
fn sub(self, other: TreeModelFlags) -> TreeModelFlags
Returns the set difference of the two sets of flags.
Source§type Output = TreeModelFlags
type Output = TreeModelFlags
-
operator.Source§impl SubAssign for TreeModelFlags
impl SubAssign for TreeModelFlags
Source§fn sub_assign(&mut self, other: TreeModelFlags)
fn sub_assign(&mut self, other: TreeModelFlags)
Disables all flags enabled in the set.
Source§impl UpperHex for TreeModelFlags
impl UpperHex for TreeModelFlags
impl Copy for TreeModelFlags
impl Eq for TreeModelFlags
impl StructuralPartialEq for TreeModelFlags
Auto Trait Implementations§
impl Freeze for TreeModelFlags
impl RefUnwindSafe for TreeModelFlags
impl Send for TreeModelFlags
impl Sync for TreeModelFlags
impl Unpin for TreeModelFlags
impl UnwindSafe for TreeModelFlags
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
.