Struct ggez::filesystem::OpenOptions[][src]

#[must_use]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 read the read/write/create/etc state out of it.

Implementations

impl OpenOptions[src]

pub fn new() -> OpenOptions[src]

Create a new instance

pub fn read(mut self: Self, read: bool) -> OpenOptions[src]

Open for reading

pub fn write(mut self: Self, write: bool) -> OpenOptions[src]

Open for writing

pub fn create(mut self: Self, create: bool) -> OpenOptions[src]

Create the file if it does not exist yet

pub fn append(mut self: Self, append: bool) -> OpenOptions[src]

Append at the end of the file

pub fn truncate(mut self: Self, truncate: bool) -> OpenOptions[src]

Truncate the file to 0 bytes after opening

Trait Implementations

impl Clone for OpenOptions[src]

impl Copy for OpenOptions[src]

impl Debug for OpenOptions[src]

impl Default for OpenOptions[src]

impl PartialEq<OpenOptions> for OpenOptions[src]

impl StructuralPartialEq for OpenOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,