[][src]Struct fat32::dir::Dir

pub struct Dir<'a, T> where
    T: BlockDevice + Clone + Copy,
    <T as BlockDevice>::Error: Debug
{ /* fields omitted */ }

Implementations

impl<'a, T> Dir<'a, T> where
    T: BlockDevice + Clone + Copy,
    <T as BlockDevice>::Error: Debug
[src]

pub fn delete_dir(&mut self, dir: &str) -> Result<(), DirError>[src]

Delete Dir

pub fn delete_file(&mut self, file: &str) -> Result<(), DirError>[src]

Delete File

pub fn create_dir(&mut self, dir: &str) -> Result<(), DirError>[src]

Create Dir

pub fn create_file(&mut self, file: &str) -> Result<(), DirError>[src]

Create File

pub fn open_file(&self, file: &str) -> Result<File<'a, T>, DirError>[src]

Open File, Return File Type

pub fn cd(&self, dir: &str) -> Result<Dir<'a, T>, DirError>[src]

Cd Dir, Return Dir Type

pub fn exist(&self, value: &str) -> Option<DirectoryItem>[src]

Check if file or dir is exist or not, Return Option Type

pub fn exist_iter(
    &self,
    iter: &mut DirIter<'_, T>,
    value: &str
) -> Option<DirectoryItem>
[src]

Check if file or dir is exist or not through DirIter, Return Option Type

Trait Implementations

impl<'a, T: Clone> Clone for Dir<'a, T> where
    T: BlockDevice + Clone + Copy,
    <T as BlockDevice>::Error: Debug
[src]

impl<'a, T: Copy> Copy for Dir<'a, T> where
    T: BlockDevice + Clone + Copy,
    <T as BlockDevice>::Error: Debug
[src]

impl<'a, T: Debug> Debug for Dir<'a, T> where
    T: BlockDevice + Clone + Copy,
    <T as BlockDevice>::Error: Debug
[src]

Auto Trait Implementations

impl<'a, T> Send for Dir<'a, T> where
    T: Send

impl<'a, T> Sync for Dir<'a, T> where
    T: Sync

impl<'a, T> Unpin for Dir<'a, T> where
    T: Unpin

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, 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.