Struct lldb::FilePermissions
[−]
[src]
#[repr(C)]pub struct FilePermissions { /* fields omitted */ }
Methods
impl FilePermissions
[src]
const WORLD_EXECUTE: FilePermissions
WORLD_EXECUTE: FilePermissions = FilePermissions{bits: 1,}
const WORLD_WRITE: FilePermissions
WORLD_WRITE: FilePermissions = FilePermissions{bits: 2,}
const WORLD_READ: FilePermissions
WORLD_READ: FilePermissions = FilePermissions{bits: 4,}
const GROUP_EXECUTE: FilePermissions
GROUP_EXECUTE: FilePermissions = FilePermissions{bits: 8,}
const GROUP_WRITE: FilePermissions
GROUP_WRITE: FilePermissions = FilePermissions{bits: 16,}
const GROUP_READ: FilePermissions
GROUP_READ: FilePermissions = FilePermissions{bits: 32,}
const USER_EXECUTE: FilePermissions
USER_EXECUTE: FilePermissions = FilePermissions{bits: 64,}
const USER_WRITE: FilePermissions
USER_WRITE: FilePermissions = FilePermissions{bits: 128,}
const USER_READ: FilePermissions
USER_READ: FilePermissions = FilePermissions{bits: 256,}
const WORLD_RX: FilePermissions
WORLD_RX: FilePermissions = FilePermissions{bits: <Self>::WORLD_READ.bits | <Self>::WORLD_EXECUTE.bits,}
const WORLD_RW: FilePermissions
WORLD_RW: FilePermissions = FilePermissions{bits: <Self>::WORLD_READ.bits | <Self>::WORLD_WRITE.bits,}
const WORLD_RWX: FilePermissions
WORLD_RWX: FilePermissions = FilePermissions{bits: <Self>::WORLD_READ.bits | <Self>::WORLD_WRITE.bits | <Self>::WORLD_EXECUTE.bits,}
const GROUP_RX: FilePermissions
GROUP_RX: FilePermissions = FilePermissions{bits: <Self>::GROUP_READ.bits | <Self>::GROUP_EXECUTE.bits,}
const GROUP_RW: FilePermissions
GROUP_RW: FilePermissions = FilePermissions{bits: <Self>::GROUP_READ.bits | <Self>::GROUP_WRITE.bits,}
const GROUP_RWX: FilePermissions
GROUP_RWX: FilePermissions = FilePermissions{bits: <Self>::GROUP_READ.bits | <Self>::GROUP_WRITE.bits | <Self>::GROUP_EXECUTE.bits,}
const USER_RX: FilePermissions
USER_RX: FilePermissions = FilePermissions{bits: <Self>::USER_READ.bits | <Self>::USER_EXECUTE.bits,}
const USER_RW: FilePermissions
USER_RW: FilePermissions = FilePermissions{bits: <Self>::USER_READ.bits | <Self>::USER_WRITE.bits,}
const USER_RWX: FilePermissions
USER_RWX: FilePermissions = FilePermissions{bits: <Self>::USER_READ.bits | <Self>::USER_WRITE.bits | <Self>::USER_EXECUTE.bits,}
const EVERYONE_R: FilePermissions
EVERYONE_R: FilePermissions = FilePermissions{bits: <Self>::WORLD_READ.bits | <Self>::GROUP_READ.bits | <Self>::USER_READ.bits,}
const EVERYONE_W: FilePermissions
EVERYONE_W: FilePermissions = FilePermissions{bits: <Self>::WORLD_WRITE.bits | <Self>::GROUP_WRITE.bits | <Self>::USER_WRITE.bits,}
const EVERYONE_X: FilePermissions
EVERYONE_X: FilePermissions = FilePermissions{bits: <Self>::WORLD_EXECUTE.bits | <Self>::GROUP_EXECUTE.bits | <Self>::USER_EXECUTE.bits,}
const EVERYONE_RW: FilePermissions
EVERYONE_RW: FilePermissions = FilePermissions{bits: <Self>::EVERYONE_R.bits | <Self>::EVERYONE_W.bits,}
const EVERYONE_RX: FilePermissions
EVERYONE_RX: FilePermissions = FilePermissions{bits: <Self>::EVERYONE_R.bits | <Self>::EVERYONE_X.bits,}
const EVERYONE_RWX: FilePermissions
EVERYONE_RWX: FilePermissions = FilePermissions{bits: <Self>::EVERYONE_R.bits | <Self>::EVERYONE_W.bits | <Self>::EVERYONE_X.bits,}
const FILE_DEFAULT: FilePermissions
FILE_DEFAULT: FilePermissions = FilePermissions{bits: <Self>::USER_RW.bits,}
const DIRECTORY_DEFAULT: FilePermissions
DIRECTORY_DEFAULT: FilePermissions = FilePermissions{bits: <Self>::USER_RWX.bits,}
fn empty() -> FilePermissions
[src]
Returns an empty set of flags.
fn all() -> FilePermissions
[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<FilePermissions>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u32) -> FilePermissions
[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: FilePermissions) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: FilePermissions) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: FilePermissions)
[src]
Inserts the specified flags in-place.
fn remove(&mut self, other: FilePermissions)
[src]
Removes the specified flags in-place.
fn toggle(&mut self, other: FilePermissions)
[src]
Toggles the specified flags in-place.
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 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 Copy for FilePermissions
[src]
impl Not for FilePermissions
[src]
type Output = FilePermissions
fn not(self) -> FilePermissions
[src]
Returns the complement of this set of flags.
impl Octal for FilePermissions
[src]
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.
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 Debug for FilePermissions
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
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 PartialEq<FilePermissions> for FilePermissions
[src]
fn eq(&self, __arg_0: &FilePermissions) -> bool
[src]
fn ne(&self, __arg_0: &FilePermissions) -> bool
[src]
impl SubAssign<FilePermissions> for FilePermissions
[src]
fn sub_assign(&mut self, other: FilePermissions)
[src]
Disables all flags enabled in the set.
impl Hash for FilePermissions
[src]
impl UpperHex for FilePermissions
[src]
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 BitXorAssign<FilePermissions> for FilePermissions
[src]
fn bitxor_assign(&mut self, other: FilePermissions)
[src]
Toggles the set 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 Extend<FilePermissions> for FilePermissions
[src]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = FilePermissions>,
[src]
T: IntoIterator<Item = FilePermissions>,
impl Binary for FilePermissions
[src]
impl LowerHex for FilePermissions
[src]
impl FromIterator<FilePermissions> for FilePermissions
[src]
fn from_iter<T>(iterator: T) -> FilePermissions where
T: IntoIterator<Item = FilePermissions>,
[src]
T: IntoIterator<Item = FilePermissions>,