pub struct OpenOptions { /* private fields */ }
Implementations§
Source§impl OpenOptions
impl OpenOptions
pub fn new() -> OpenOptions
pub fn has_read(&self) -> bool
pub fn read(self, read: bool) -> OpenOptions
pub fn has_write(&self) -> bool
pub fn write(self, write: bool) -> OpenOptions
pub fn has_create(&self) -> bool
pub fn create(self, create: bool) -> OpenOptions
pub fn has_append(&self) -> bool
pub fn append(self, append: bool) -> OpenOptions
pub fn has_truncate(&self) -> bool
pub fn truncate(self, truncate: bool) -> OpenOptions
Trait Implementations§
Source§impl Debug for OpenOptions
impl Debug for OpenOptions
Source§impl Default for OpenOptions
impl Default for OpenOptions
Source§fn default() -> OpenOptions
fn default() -> OpenOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpenOptions
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnwindSafe for OpenOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more