pub enum FileWriteMode {
Write,
Append,
}Expand description
Files can be opened for writing by creating/truncating or appending to an existing file
Variants§
Write
Specifies that the file is to be opened for writing. If it already exists, the file is truncated to zero length
Append
Specifies that the file is to be opened for writing, appending to the end of the file
Trait Implementations§
Source§impl Clone for FileWriteMode
impl Clone for FileWriteMode
Source§fn clone(&self) -> FileWriteMode
fn clone(&self) -> FileWriteMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileWriteMode
impl Debug for FileWriteMode
Source§impl From<FileWriteMode> for FileMode
impl From<FileWriteMode> for FileMode
Source§fn from(value: FileWriteMode) -> Self
fn from(value: FileWriteMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FileWriteMode
impl PartialEq for FileWriteMode
impl Copy for FileWriteMode
impl Eq for FileWriteMode
impl StructuralPartialEq for FileWriteMode
Auto Trait Implementations§
impl Freeze for FileWriteMode
impl RefUnwindSafe for FileWriteMode
impl Send for FileWriteMode
impl Sync for FileWriteMode
impl Unpin for FileWriteMode
impl UnwindSafe for FileWriteMode
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