Struct lldb::Permissions
[−]
[src]
#[repr(C)]pub struct Permissions { /* fields omitted */ }
Methods
impl Permissions[src]
const WRITABLE: Permissions
WRITABLE: Permissions = Permissions{bits: 1,}
const READABLE: Permissions
READABLE: Permissions = Permissions{bits: 2,}
const EXECUTABLE: Permissions
EXECUTABLE: Permissions = Permissions{bits: 4,}
fn empty() -> Permissions[src]
Returns an empty set of flags.
fn all() -> Permissions[src]
Returns the set containing all flags.
fn bits(&self) -> u32[src]
Returns the raw value of the flags currently stored.
fn from_bits(bits: u32) -> Option<Permissions>[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u32) -> Permissions[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool[src]
Returns true if no flags are currently stored.
fn is_all(&self) -> bool[src]
Returns true if all flags are currently set.
fn intersects(&self, other: Permissions) -> bool[src]
Returns true if there are flags common to both self and other.
fn contains(&self, other: Permissions) -> bool[src]
Returns true all of the flags in other are contained within self.
fn insert(&mut self, other: Permissions)[src]
Inserts the specified flags in-place.
fn remove(&mut self, other: Permissions)[src]
Removes the specified flags in-place.
fn toggle(&mut self, other: Permissions)[src]
Toggles the specified flags in-place.
fn set(&mut self, other: Permissions, value: bool)[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Sub<Permissions> for Permissions[src]
type Output = Permissions
fn sub(self, other: Permissions) -> Permissions[src]
Returns the set difference of the two sets of flags.
impl Clone for Permissions[src]
fn clone(&self) -> Permissions[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for Permissions[src]
impl Not for Permissions[src]
type Output = Permissions
fn not(self) -> Permissions[src]
Returns the complement of this set of flags.
impl Octal for Permissions[src]
impl BitXor<Permissions> for Permissions[src]
type Output = Permissions
fn bitxor(self, other: Permissions) -> Permissions[src]
Returns the left flags, but with all the right flags toggled.
impl BitOr<Permissions> for Permissions[src]
type Output = Permissions
fn bitor(self, other: Permissions) -> Permissions[src]
Returns the union of the two sets of flags.
impl Debug for Permissions[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter.
impl BitOrAssign<Permissions> for Permissions[src]
fn bitor_assign(&mut self, other: Permissions)[src]
Adds the set of flags.
impl Eq for Permissions[src]
impl PartialEq<Permissions> for Permissions[src]
fn eq(&self, __arg_0: &Permissions) -> bool[src]
fn ne(&self, __arg_0: &Permissions) -> bool[src]
impl SubAssign<Permissions> for Permissions[src]
fn sub_assign(&mut self, other: Permissions)[src]
Disables all flags enabled in the set.
impl Hash for Permissions[src]
impl UpperHex for Permissions[src]
impl BitAnd<Permissions> for Permissions[src]
type Output = Permissions
fn bitand(self, other: Permissions) -> Permissions[src]
Returns the intersection between the two sets of flags.
impl BitXorAssign<Permissions> for Permissions[src]
fn bitxor_assign(&mut self, other: Permissions)[src]
Toggles the set of flags.
impl BitAndAssign<Permissions> for Permissions[src]
fn bitand_assign(&mut self, other: Permissions)[src]
Disables all flags disabled in the set.
impl PartialOrd<Permissions> for Permissions[src]
fn partial_cmp(&self, __arg_0: &Permissions) -> Option<Ordering>[src]
fn lt(&self, __arg_0: &Permissions) -> bool[src]
fn le(&self, __arg_0: &Permissions) -> bool[src]
fn gt(&self, __arg_0: &Permissions) -> bool[src]
fn ge(&self, __arg_0: &Permissions) -> bool[src]
impl Ord for Permissions[src]
fn cmp(&self, __arg_0: &Permissions) -> Ordering[src]
impl Extend<Permissions> for Permissions[src]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = Permissions>, [src]
T: IntoIterator<Item = Permissions>,
impl Binary for Permissions[src]
impl LowerHex for Permissions[src]
impl FromIterator<Permissions> for Permissions[src]
fn from_iter<T>(iterator: T) -> Permissions where
T: IntoIterator<Item = Permissions>, [src]
T: IntoIterator<Item = Permissions>,