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