Struct ggez::filesystem::OpenOptions [−][src]
pub struct OpenOptions { /* fields omitted */ }
Expand description
Options for opening files
We need our own version of this structure because the one in
std
annoyingly doesn’t let you read the read/write/create/etc
state out of it.
Implementations
Create a new instance
Open for reading
Open for writing
Create the file if it does not exist yet
Append at the end of the file
Truncate the file to 0 bytes after opening
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnwindSafe for OpenOptions
Blanket Implementations
Mutably borrows from an owned value. Read more