Struct tianmu_fs::DirItem[][src]

#[repr(C)]
pub struct DirItem { pub name: [u8; 15], pub attr: Attribute, pub start_block: u64, pub length: u64, }

Fields

name: [u8; 15]attr: Attributestart_block: u64length: u64

Implementations

impl DirItem[src]

pub fn new_file(filename: &String, start_block: usize, length: usize) -> Self[src]

pub fn empty(&self) -> bool[src]

pub fn new_dir(dirname: &String, start_block: usize, length: usize) -> Self[src]

pub fn is_file(&self) -> bool[src]

pub fn is_dir(&self) -> bool[src]

Trait Implementations

impl Clone for DirItem[src]

impl Copy for DirItem[src]

impl Debug for DirItem[src]

Auto Trait Implementations

impl Send for DirItem

impl Sync for DirItem

impl Unpin for DirItem

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.