[−][src]Struct fat32::dir::Dir
Implementations
impl<'a, T> Dir<'a, T> where
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
[src]
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
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
pub fn cd(&self, dir: &str) -> Result<Dir<'a, T>, DirError>
[src]
Cd Dir, Return Dir
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]
&self,
iter: &mut DirIter<'_, T>,
value: &str
) -> Option<DirectoryItem>
Check if file or dir is exist or not through DirIter
Trait Implementations
impl<'a, T: Clone> Clone for Dir<'a, T> where
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
[src]
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
fn clone(&self) -> Dir<'a, T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, T: Copy> Copy for Dir<'a, T> where
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
[src]
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
impl<'a, T: Debug> Debug for Dir<'a, T> where
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
[src]
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
Auto Trait Implementations
impl<'a, T> Send for Dir<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for Dir<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for Dir<'a, T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,