Struct rute::auto::style::SubElement
source · pub struct SubElement { /* private fields */ }
Implementations
sourceimpl SubElement
impl SubElement
pub const SePushButtonContents: Self = _
pub const SePushButtonFocusRect: Self = _
pub const SeCheckBoxIndicator: Self = _
pub const SeCheckBoxContents: Self = _
pub const SeCheckBoxFocusRect: Self = _
pub const SeCheckBoxClickRect: Self = _
pub const SeRadioButtonIndicator: Self = _
pub const SeRadioButtonContents: Self = _
pub const SeRadioButtonFocusRect: Self = _
pub const SeRadioButtonClickRect: Self = _
pub const SeComboBoxFocusRect: Self = _
pub const SeSliderFocusRect: Self = _
pub const SeProgressBarGroove: Self = _
pub const SeProgressBarContents: Self = _
pub const SeProgressBarLabel: Self = _
pub const SeToolBoxTabContents: Self = _
pub const SeHeaderLabel: Self = _
pub const SeHeaderArrow: Self = _
pub const SeTabWidgetTabBar: Self = _
pub const SeTabWidgetTabPane: Self = _
pub const SeTabWidgetTabContents: Self = _
pub const SeTabWidgetLeftCorner: Self = _
pub const SeTabWidgetRightCorner: Self = _
pub const SeViewItemCheckIndicator: Self = _
pub const SeItemViewItemCheckIndicator: Self = _
pub const SeTabBarTearIndicator: Self = _
pub const SeTabBarTearIndicatorLeft: Self = _
pub const SeTreeViewDisclosureItem: Self = _
pub const SeLineEditContents: Self = _
pub const SeFrameContents: Self = _
pub const SeDockWidgetCloseButton: Self = _
pub const SeDockWidgetFloatButton: Self = _
pub const SeDockWidgetTitleBarText: Self = _
pub const SeDockWidgetIcon: Self = _
pub const SeCheckBoxLayoutItem: Self = _
pub const SeComboBoxLayoutItem: Self = _
pub const SeDateTimeEditLayoutItem: Self = _
pub const SeDialogButtonBoxLayoutItem: Self = _
pub const SeLabelLayoutItem: Self = _
pub const SeProgressBarLayoutItem: Self = _
pub const SePushButtonLayoutItem: Self = _
pub const SeRadioButtonLayoutItem: Self = _
pub const SeSliderLayoutItem: Self = _
pub const SeSpinBoxLayoutItem: Self = _
pub const SeToolButtonLayoutItem: Self = _
pub const SeFrameLayoutItem: Self = _
pub const SeGroupBoxLayoutItem: Self = _
pub const SeTabWidgetLayoutItem: Self = _
pub const SeItemViewItemDecoration: Self = _
pub const SeItemViewItemText: Self = _
pub const SeItemViewItemFocusRect: Self = _
pub const SeTabBarTabLeftButton: Self = _
pub const SeTabBarTabRightButton: Self = _
pub const SeTabBarTabText: Self = _
pub const SeShapedFrameContents: Self = _
pub const SeToolBarHandle: Self = _
pub const SeTabBarScrollLeftButton: Self = _
pub const SeTabBarScrollRightButton: Self = _
pub const SeTabBarTearIndicatorRight: Self = _
pub const SeCustomBase: Self = _
sourcepub const fn from_bits(bits: u32) -> Option<Self>
pub const fn from_bits(bits: u32) -> Option<Self>
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) -> Self
pub const fn from_bits_truncate(bits: u32) -> Self
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> Self
pub const unsafe fn from_bits_unchecked(bits: u32) -> Self
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Safety
The caller of the bitflags!
macro can chose to allow or
disallow extra bits for their bitflags type.
The caller of from_bits_unchecked()
has to ensure that
all bits correspond to a defined flag or that extra bits
are valid for this bitflags type.
sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Returns true
if all of the flags in other
are contained within self
.
sourcepub fn set(&mut self, other: Self, value: bool)
pub fn set(&mut self, other: Self, value: bool)
Inserts or removes the specified flags depending on the passed value.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection between the flags in self
and
other
.
Specifically, the returned set contains only the flags which are
present in both self
and other
.
This is equivalent to using the &
operator (e.g.
ops::BitAnd
), as in flags & other
.
sourcepub const fn union(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
Returns the union of between the flags in self
and other
.
Specifically, the returned set contains all flags which are
present in either self
or other
, including any which are
present in both (see Self::symmetric_difference
if that
is undesirable).
This is equivalent to using the |
operator (e.g.
ops::BitOr
), as in flags | other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns the difference between the flags in self
and other
.
Specifically, the returned set contains all flags present in
self
, except for the ones present in other
.
It is also conceptually equivalent to the “bit-clear” operation:
flags & !other
(and this syntax is also supported).
This is equivalent to using the -
operator (e.g.
ops::Sub
), as in flags - other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the symmetric difference between the flags
in self
and other
.
Specifically, the returned set contains the flags present which
are present in self
or other
, but that are not present in
both. Equivalently, it contains the flags present in exactly
one of the sets self
and other
.
This is equivalent to using the ^
operator (e.g.
ops::BitXor
), as in flags ^ other
.
sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
Returns the complement of this set of flags.
Specifically, the returned set contains all the flags which are
not set in self
, but which are allowed for this type.
Alternatively, it can be thought of as the set difference
between Self::all()
and self
(e.g. Self::all() - self
)
This is equivalent to using the !
operator (e.g.
ops::Not
), as in !flags
.
Trait Implementations
sourceimpl Binary for SubElement
impl Binary for SubElement
sourceimpl BitAnd<SubElement> for SubElement
impl BitAnd<SubElement> for SubElement
type Output = SubElement
type Output = SubElement
&
operator.sourceimpl BitAndAssign<SubElement> for SubElement
impl BitAndAssign<SubElement> for SubElement
sourcefn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Disables all flags disabled in the set.
sourceimpl BitOr<SubElement> for SubElement
impl BitOr<SubElement> for SubElement
sourcefn bitor(self, other: SubElement) -> Self
fn bitor(self, other: SubElement) -> Self
Returns the union of the two sets of flags.
type Output = SubElement
type Output = SubElement
|
operator.sourceimpl BitOrAssign<SubElement> for SubElement
impl BitOrAssign<SubElement> for SubElement
sourcefn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Adds the set of flags.
sourceimpl BitXor<SubElement> for SubElement
impl BitXor<SubElement> for SubElement
sourcefn bitxor(self, other: Self) -> Self
fn bitxor(self, other: Self) -> Self
Returns the left flags, but with all the right flags toggled.
type Output = SubElement
type Output = SubElement
^
operator.sourceimpl BitXorAssign<SubElement> for SubElement
impl BitXorAssign<SubElement> for SubElement
sourcefn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Toggles the set of flags.
sourceimpl Clone for SubElement
impl Clone for SubElement
sourcefn clone(&self) -> SubElement
fn clone(&self) -> SubElement
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for SubElement
impl Debug for SubElement
sourceimpl Extend<SubElement> for SubElement
impl Extend<SubElement> for SubElement
sourcefn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&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<SubElement> for SubElement
impl FromIterator<SubElement> for SubElement
sourcefn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
sourceimpl Hash for SubElement
impl Hash for SubElement
sourceimpl LowerHex for SubElement
impl LowerHex for SubElement
sourceimpl Not for SubElement
impl Not for SubElement
type Output = SubElement
type Output = SubElement
!
operator.sourceimpl Octal for SubElement
impl Octal for SubElement
sourceimpl Ord for SubElement
impl Ord for SubElement
sourcefn cmp(&self, other: &SubElement) -> Ordering
fn cmp(&self, other: &SubElement) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
sourceimpl PartialEq<SubElement> for SubElement
impl PartialEq<SubElement> for SubElement
sourcefn eq(&self, other: &SubElement) -> bool
fn eq(&self, other: &SubElement) -> bool
sourceimpl PartialOrd<SubElement> for SubElement
impl PartialOrd<SubElement> for SubElement
sourcefn partial_cmp(&self, other: &SubElement) -> Option<Ordering>
fn partial_cmp(&self, other: &SubElement) -> 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 Sub<SubElement> for SubElement
impl Sub<SubElement> for SubElement
type Output = SubElement
type Output = SubElement
-
operator.sourceimpl SubAssign<SubElement> for SubElement
impl SubAssign<SubElement> for SubElement
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Disables all flags enabled in the set.