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