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