[−][src]Struct ggez::filesystem::OpenOptions
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.
Methods
impl OpenOptions
[src]
pub fn new() -> OpenOptions
[src]
Create a new instance
pub fn read(self, read: bool) -> OpenOptions
[src]
Open for reading
pub fn write(self, write: bool) -> OpenOptions
[src]
Open for writing
pub fn create(self, create: bool) -> OpenOptions
[src]
Create the file if it does not exist yet
pub fn append(self, append: bool) -> OpenOptions
[src]
Append at the end of the file
pub fn truncate(self, truncate: bool) -> OpenOptions
[src]
Truncate the file to 0 bytes after opening
Trait Implementations
impl PartialEq<OpenOptions> for OpenOptions
[src]
fn eq(&self, other: &OpenOptions) -> bool
[src]
fn ne(&self, other: &OpenOptions) -> bool
[src]
impl Clone for OpenOptions
[src]
fn clone(&self) -> OpenOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for OpenOptions
[src]
fn default() -> OpenOptions
[src]
impl Copy for OpenOptions
[src]
impl Debug for OpenOptions
[src]
Auto Trait Implementations
impl Unpin for OpenOptions
impl Sync for OpenOptions
impl Send for OpenOptions
impl RefUnwindSafe for OpenOptions
impl UnwindSafe for OpenOptions
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Scalar for T where
T: Copy + PartialEq<T> + Any + Debug,
[src]
T: Copy + PartialEq<T> + Any + Debug,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> Erased for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.