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]
impl OpenOptions
pub fn new() -> OpenOptions
[src]
pub fn new() -> OpenOptions
Create a new instance
pub fn read(&mut self, read: bool) -> &mut OpenOptions
[src]
pub fn read(&mut self, read: bool) -> &mut OpenOptions
Open for reading
pub fn write(&mut self, write: bool) -> &mut OpenOptions
[src]
pub fn write(&mut self, write: bool) -> &mut OpenOptions
Open for writing
pub fn create(&mut self, create: bool) -> &mut OpenOptions
[src]
pub fn create(&mut self, create: bool) -> &mut OpenOptions
Create the file if it does not exist yet
pub fn append(&mut self, append: bool) -> &mut OpenOptions
[src]
pub fn append(&mut self, append: bool) -> &mut OpenOptions
Append at the end of the file
pub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions
[src]
pub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions
Truncate the file to 0 bytes after opening
Trait Implementations
impl Debug for OpenOptions
[src]
impl Debug for OpenOptions
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for OpenOptions
[src]
impl Default for OpenOptions
fn default() -> OpenOptions
[src]
fn default() -> OpenOptions
Returns the "default value" for a type. Read more
impl Copy for OpenOptions
[src]
impl Copy for OpenOptions
impl Clone for OpenOptions
[src]
impl Clone for OpenOptions
fn clone(&self) -> OpenOptions
[src]
fn clone(&self) -> OpenOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for OpenOptions
[src]
impl PartialEq for OpenOptions
fn eq(&self, other: &OpenOptions) -> bool
[src]
fn eq(&self, other: &OpenOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &OpenOptions) -> bool
[src]
fn ne(&self, other: &OpenOptions) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Sync for OpenOptions