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

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 Copy for OpenOptions[src]

impl PartialEq<OpenOptions> for OpenOptions[src]

impl Clone for OpenOptions[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for OpenOptions[src]

impl Debug for OpenOptions[src]

Auto Trait Implementations

impl Send for OpenOptions

impl Sync for OpenOptions

Blanket Implementations

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

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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<T> Scalar for T where
    T: Copy + PartialEq<T> + Any + Debug
[src]

default fn is<T>() -> bool where
    T: Scalar
[src]

Tests if Self the same as the type T Read more

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Erased for T

impl<T> SetParameter for T

default fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.