Struct FileType
pub struct FileType { pub(in ::sys::fs::unix) mode: mode_t }
Fields
mode: mode_t
Implementations
impl FileType
fn is_dir(&self) -> boolfn is_file(&self) -> boolfn is_symlink(&self) -> boolfn is(&self, mode: mode_t) -> boolfn masked(&self) -> mode_t
Trait Implementations
impl Clone for FileType
fn clone(&self) -> FileType
impl Copy for FileType
impl Debug for FileType
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for FileType
fn assert_fields_are_eq(&self)
impl Hash for FileType
fn hash<H: Hasher>(&self, state: &mut H)
impl PartialEq for FileType
fn eq(&self, other: &Self) -> bool
impl TrivialClone for FileType
Auto Trait Implementations
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnsafeUnpin for FileType
impl UnwindSafe for FileType
Blanket Implementations
impl<T> Any for FileType
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FileType
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FileType
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FileType
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FileType
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Printable for FileType
where
T: Copy + Debug,
impl<T> SizeHint for FileType
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for FileType
impl<T> ToOwned for FileType
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for FileType
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FileType
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for FileType
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>