Struct ggez::filesystem::OpenOptions
[−]
[src]
pub struct OpenOptions { /* fields omitted */ }
Options for opening files
We need our own version of this structure because the one in std annoyingly doesn't let you get data out of it.
Methods
impl OpenOptions
[src]
pub fn new() -> OpenOptions
[src]
Create a new instance
pub fn read(&mut self, read: bool) -> &mut OpenOptions
[src]
Open for reading
pub fn write(&mut self, write: bool) -> &mut OpenOptions
[src]
Open for writing
pub fn create(&mut self, create: bool) -> &mut OpenOptions
[src]
Create the file if it does not exist yet
pub fn append(&mut self, append: bool) -> &mut OpenOptions
[src]
Append at the end of the file
pub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions
[src]
Truncate the file to 0 bytes after opening
Trait Implementations
impl Debug for OpenOptions
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for OpenOptions
[src]
fn default() -> OpenOptions
[src]
Returns the "default value" for a type. Read more
impl Copy for OpenOptions
[src]
impl Clone for OpenOptions
[src]
fn clone(&self) -> OpenOptions
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for OpenOptions
[src]
fn eq(&self, __arg_0: &OpenOptions) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &OpenOptions) -> bool
[src]
This method tests for !=
.