DirImpl

Struct DirImpl 

Source
pub struct DirImpl { /* private fields */ }

Trait Implementations§

Source§

impl Dir for DirImpl

Source§

type Read = File

Source§

type Write = File

Source§

fn open_file(&mut self, name: &str) -> Result<Self::Read, FSError>

Open a file for reading. Read more
Source§

fn create_file(&mut self, name: &str) -> Result<Self::Write, FSError>

Create a new file and open it for write. Read more
Source§

fn append_file(&mut self, name: &str) -> Result<Self::Write, FSError>

Write data to the end of the file.
Source§

fn get_file_size(&mut self, name: &str) -> Result<u32, FSError>

Get file size in bytes. Read more
Source§

fn remove_file(&mut self, name: &str) -> Result<(), FSError>

Delete the given file if exists. Read more
Source§

fn iter_dir<F>(&mut self, f: F) -> Result<(), FSError>
where F: FnMut(EntryKind, &[u8]),

Call the callback for each entry in the given directory. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

Source§

fn into_sample(self) -> T

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,