Struct lldb::FilePermissions
[−]
[src]
#[repr(C)]pub struct FilePermissions { /* fields omitted */ }
Methods
impl FilePermissions
[src]
pub const WORLD_EXECUTE: FilePermissions
WORLD_EXECUTE: FilePermissions = FilePermissions{bits: 1,}
pub const WORLD_WRITE: FilePermissions
WORLD_WRITE: FilePermissions = FilePermissions{bits: 2,}
pub const WORLD_READ: FilePermissions
WORLD_READ: FilePermissions = FilePermissions{bits: 4,}
pub const GROUP_EXECUTE: FilePermissions
GROUP_EXECUTE: FilePermissions = FilePermissions{bits: 8,}
pub const GROUP_WRITE: FilePermissions
GROUP_WRITE: FilePermissions = FilePermissions{bits: 16,}
pub const GROUP_READ: FilePermissions
GROUP_READ: FilePermissions = FilePermissions{bits: 32,}
pub const USER_EXECUTE: FilePermissions
USER_EXECUTE: FilePermissions = FilePermissions{bits: 64,}
pub const USER_WRITE: FilePermissions
USER_WRITE: FilePermissions = FilePermissions{bits: 128,}
pub const USER_READ: FilePermissions
USER_READ: FilePermissions = FilePermissions{bits: 256,}
pub const WORLD_RX: FilePermissions
WORLD_RX: FilePermissions = FilePermissions{bits: <Self>::WORLD_READ.bits | <Self>::WORLD_EXECUTE.bits,}
pub const WORLD_RW: FilePermissions
WORLD_RW: FilePermissions = FilePermissions{bits: <Self>::WORLD_READ.bits | <Self>::WORLD_WRITE.bits,}
pub const WORLD_RWX: FilePermissions
WORLD_RWX: FilePermissions = FilePermissions{bits: <Self>::WORLD_READ.bits | <Self>::WORLD_WRITE.bits | <Self>::WORLD_EXECUTE.bits,}
pub const GROUP_RX: FilePermissions
GROUP_RX: FilePermissions = FilePermissions{bits: <Self>::GROUP_READ.bits | <Self>::GROUP_EXECUTE.bits,}
pub const GROUP_RW: FilePermissions
GROUP_RW: FilePermissions = FilePermissions{bits: <Self>::GROUP_READ.bits | <Self>::GROUP_WRITE.bits,}
pub const GROUP_RWX: FilePermissions
GROUP_RWX: FilePermissions = FilePermissions{bits: <Self>::GROUP_READ.bits | <Self>::GROUP_WRITE.bits | <Self>::GROUP_EXECUTE.bits,}
pub const USER_RX: FilePermissions
USER_RX: FilePermissions = FilePermissions{bits: <Self>::USER_READ.bits | <Self>::USER_EXECUTE.bits,}
pub const USER_RW: FilePermissions
USER_RW: FilePermissions = FilePermissions{bits: <Self>::USER_READ.bits | <Self>::USER_WRITE.bits,}
pub const USER_RWX: FilePermissions
USER_RWX: FilePermissions = FilePermissions{bits: <Self>::USER_READ.bits | <Self>::USER_WRITE.bits | <Self>::USER_EXECUTE.bits,}
pub const EVERYONE_R: FilePermissions
EVERYONE_R: FilePermissions = FilePermissions{bits: <Self>::WORLD_READ.bits | <Self>::GROUP_READ.bits | <Self>::USER_READ.bits,}
pub const EVERYONE_W: FilePermissions
EVERYONE_W: FilePermissions = FilePermissions{bits: <Self>::WORLD_WRITE.bits | <Self>::GROUP_WRITE.bits | <Self>::USER_WRITE.bits,}
pub const EVERYONE_X: FilePermissions
EVERYONE_X: FilePermissions = FilePermissions{bits: <Self>::WORLD_EXECUTE.bits | <Self>::GROUP_EXECUTE.bits | <Self>::USER_EXECUTE.bits,}
pub const EVERYONE_RW: FilePermissions
EVERYONE_RW: FilePermissions = FilePermissions{bits: <Self>::EVERYONE_R.bits | <Self>::EVERYONE_W.bits,}
pub const EVERYONE_RX: FilePermissions
EVERYONE_RX: FilePermissions = FilePermissions{bits: <Self>::EVERYONE_R.bits | <Self>::EVERYONE_X.bits,}
pub const EVERYONE_RWX: FilePermissions
EVERYONE_RWX: FilePermissions = FilePermissions{bits: <Self>::EVERYONE_R.bits | <Self>::EVERYONE_W.bits | <Self>::EVERYONE_X.bits,}
pub const FILE_DEFAULT: FilePermissions
FILE_DEFAULT: FilePermissions = FilePermissions{bits: <Self>::USER_RW.bits,}
pub const DIRECTORY_DEFAULT: FilePermissions
DIRECTORY_DEFAULT: FilePermissions = FilePermissions{bits: <Self>::USER_RWX.bits,}
pub fn empty() -> FilePermissions
[src]
Returns an empty set of flags.
pub fn all() -> FilePermissions
[src]
Returns the set containing all flags.
pub fn bits(&self) -> u32
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<FilePermissions>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> FilePermissions
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub fn intersects(&self, other: FilePermissions) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: FilePermissions) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: FilePermissions)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: FilePermissions)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: FilePermissions)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: FilePermissions, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Sub<FilePermissions> for FilePermissions
[src]
type Output = FilePermissions
fn sub(self, other: FilePermissions) -> FilePermissions
[src]
Returns the set difference of the two sets of flags.
impl BitAndAssign<FilePermissions> for FilePermissions
[src]
fn bitand_assign(&mut self, other: FilePermissions)
[src]
Disables all flags disabled in the set.
impl PartialOrd<FilePermissions> for FilePermissions
[src]
fn partial_cmp(&self, __arg_0: &FilePermissions) -> Option<Ordering>
[src]
fn lt(&self, __arg_0: &FilePermissions) -> bool
[src]
fn le(&self, __arg_0: &FilePermissions) -> bool
[src]
fn gt(&self, __arg_0: &FilePermissions) -> bool
[src]
fn ge(&self, __arg_0: &FilePermissions) -> bool
[src]
impl Ord for FilePermissions
[src]
fn cmp(&self, __arg_0: &FilePermissions) -> Ordering
[src]
impl Not for FilePermissions
[src]
type Output = FilePermissions
fn not(self) -> FilePermissions
[src]
Returns the complement of this set of flags.
impl Copy for FilePermissions
[src]
impl Debug for FilePermissions
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl FromIterator<FilePermissions> for FilePermissions
[src]
fn from_iter<T>(iterator: T) -> FilePermissions where
T: IntoIterator<Item = FilePermissions>,
[src]
T: IntoIterator<Item = FilePermissions>,
impl LowerHex for FilePermissions
[src]
impl BitOr<FilePermissions> for FilePermissions
[src]
type Output = FilePermissions
fn bitor(self, other: FilePermissions) -> FilePermissions
[src]
Returns the union of the two sets of flags.
impl UpperHex for FilePermissions
[src]
impl Clone for FilePermissions
[src]
fn clone(&self) -> FilePermissions
[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 Hash for FilePermissions
[src]
impl PartialEq<FilePermissions> for FilePermissions
[src]
fn eq(&self, __arg_0: &FilePermissions) -> bool
[src]
fn ne(&self, __arg_0: &FilePermissions) -> bool
[src]
impl Binary for FilePermissions
[src]
impl BitXorAssign<FilePermissions> for FilePermissions
[src]
fn bitxor_assign(&mut self, other: FilePermissions)
[src]
Toggles the set of flags.
impl BitOrAssign<FilePermissions> for FilePermissions
[src]
fn bitor_assign(&mut self, other: FilePermissions)
[src]
Adds the set of flags.
impl Eq for FilePermissions
[src]
impl SubAssign<FilePermissions> for FilePermissions
[src]
fn sub_assign(&mut self, other: FilePermissions)
[src]
Disables all flags enabled in the set.
impl BitAnd<FilePermissions> for FilePermissions
[src]
type Output = FilePermissions
fn bitand(self, other: FilePermissions) -> FilePermissions
[src]
Returns the intersection between the two sets of flags.
impl Octal for FilePermissions
[src]
impl Extend<FilePermissions> for FilePermissions
[src]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = FilePermissions>,
[src]
T: IntoIterator<Item = FilePermissions>,
impl BitXor<FilePermissions> for FilePermissions
[src]
type Output = FilePermissions
fn bitxor(self, other: FilePermissions) -> FilePermissions
[src]
Returns the left flags, but with all the right flags toggled.