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