pub struct KeyUsage { /* private fields */ }
Implementations
sourceimpl KeyUsage
impl KeyUsage
sourcepub fn from_bits(bits: c_uint) -> Option<KeyUsage>
pub fn from_bits(bits: c_uint) -> Option<KeyUsage>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub fn from_bits_truncate(bits: c_uint) -> KeyUsage
pub fn from_bits_truncate(bits: c_uint) -> KeyUsage
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub fn intersects(&self, other: KeyUsage) -> bool
pub fn intersects(&self, other: KeyUsage) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations
sourceimpl BitAndAssign<KeyUsage> for KeyUsage
impl BitAndAssign<KeyUsage> for KeyUsage
sourcefn bitand_assign(&mut self, other: KeyUsage)
fn bitand_assign(&mut self, other: KeyUsage)
Disables all flags disabled in the set.
sourceimpl BitOrAssign<KeyUsage> for KeyUsage
impl BitOrAssign<KeyUsage> for KeyUsage
sourcefn bitor_assign(&mut self, other: KeyUsage)
fn bitor_assign(&mut self, other: KeyUsage)
Adds the set of flags.
sourceimpl BitXorAssign<KeyUsage> for KeyUsage
impl BitXorAssign<KeyUsage> for KeyUsage
sourcefn bitxor_assign(&mut self, other: KeyUsage)
fn bitxor_assign(&mut self, other: KeyUsage)
Toggles the set of flags.
sourceimpl Extend<KeyUsage> for KeyUsage
impl Extend<KeyUsage> for KeyUsage
sourcefn extend<T: IntoIterator<Item = KeyUsage>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = KeyUsage>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl FromIterator<KeyUsage> for KeyUsage
impl FromIterator<KeyUsage> for KeyUsage
sourceimpl Ord for KeyUsage
impl Ord for KeyUsage
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
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>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<KeyUsage> for KeyUsage
impl PartialOrd<KeyUsage> for KeyUsage
sourcefn partial_cmp(&self, other: &KeyUsage) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyUsage) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl SubAssign<KeyUsage> for KeyUsage
impl SubAssign<KeyUsage> for KeyUsage
sourcefn sub_assign(&mut self, other: KeyUsage)
fn sub_assign(&mut self, other: KeyUsage)
Disables all flags enabled in the set.
impl Copy for KeyUsage
impl Eq for KeyUsage
impl StructuralEq for KeyUsage
impl StructuralPartialEq for KeyUsage
Auto Trait Implementations
impl RefUnwindSafe for KeyUsage
impl Send for KeyUsage
impl Sync for KeyUsage
impl Unpin for KeyUsage
impl UnwindSafe for KeyUsage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more