Trait playdate_fs::options::FileOptionsExt
source · pub trait FileOptionsExt: Into<FileOptions> {
// Required methods
fn new() -> Self;
fn read(self, read: bool) -> Self;
fn read_data(self, read: bool) -> Self;
fn write(self, write: bool) -> Self;
fn append(self, append: bool) -> Self;
fn is_empty(&self) -> bool;
fn is_read(&self) -> bool;
fn is_read_data(&self) -> bool;
fn is_write(&self) -> bool;
fn is_append(&self) -> bool;
fn is_read_any(&self) -> bool;
fn is_write_any(&self) -> bool;
}Expand description
Extension for sys::ffi::FileOptions make it looks like [std::fs::OpenOptions].
Required Methods§
fn read(self, read: bool) -> Self
fn read_data(self, read: bool) -> Self
fn write(self, write: bool) -> Self
fn append(self, append: bool) -> Self
fn is_empty(&self) -> bool
fn is_read(&self) -> bool
fn is_read_data(&self) -> bool
fn is_write(&self) -> bool
fn is_append(&self) -> bool
fn is_read_any(&self) -> bool
fn is_write_any(&self) -> bool
Object Safety§
This trait is not object safe.