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