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