Struct emerald_std::io::OpenOptions
source · pub struct OpenOptions(/* private fields */);
Implementations§
source§impl OpenOptions
impl OpenOptions
pub const READ: OpenOptions = _
pub const WRITE: OpenOptions = _
pub const CREATE: OpenOptions = _
pub const CREATE_NEW: OpenOptions = _
pub const TRUNCATE: OpenOptions = _
pub const APPEND: OpenOptions = _
pub fn new() -> OpenOptions
pub fn read(&mut self, read: bool) -> &mut OpenOptions
pub fn write(&mut self, write: bool) -> &mut OpenOptions
pub fn create(&mut self, create: bool) -> &mut OpenOptions
pub fn create_new(&mut self, create_new: bool) -> &mut OpenOptions
pub fn truncate(&mut self, truncate: bool) -> &mut OpenOptions
pub fn append(&mut self, append: bool) -> &mut OpenOptions
pub fn is_read(&self) -> bool
pub fn is_write(&self) -> bool
pub fn is_create(&self) -> bool
pub fn is_create_new(&self) -> bool
pub fn is_truncate(&self) -> bool
pub fn is_append(&self) -> bool
pub fn from_u64(flags: u64) -> Option<OpenOptions>
pub fn to_u64(&self) -> u64
Trait Implementations§
source§impl BitAnd for OpenOptions
impl BitAnd for OpenOptions
§type Output = OpenOptions
type Output = OpenOptions
The resulting type after applying the
&
operator.source§fn bitand(self, rhs: OpenOptions) -> <OpenOptions as BitAnd>::Output
fn bitand(self, rhs: OpenOptions) -> <OpenOptions as BitAnd>::Output
Performs the
&
operation. Read moresource§impl BitAndAssign for OpenOptions
impl BitAndAssign for OpenOptions
source§fn bitand_assign(&mut self, rhs: OpenOptions)
fn bitand_assign(&mut self, rhs: OpenOptions)
Performs the
&=
operation. Read moresource§impl BitOr for OpenOptions
impl BitOr for OpenOptions
§type Output = OpenOptions
type Output = OpenOptions
The resulting type after applying the
|
operator.source§fn bitor(self, rhs: OpenOptions) -> <OpenOptions as BitOr>::Output
fn bitor(self, rhs: OpenOptions) -> <OpenOptions as BitOr>::Output
Performs the
|
operation. Read moresource§impl BitOrAssign for OpenOptions
impl BitOrAssign for OpenOptions
source§fn bitor_assign(&mut self, rhs: OpenOptions)
fn bitor_assign(&mut self, rhs: OpenOptions)
Performs the
|=
operation. Read moresource§impl Clone for OpenOptions
impl Clone for OpenOptions
source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OpenOptions
impl Debug for OpenOptions
source§impl Default for OpenOptions
impl Default for OpenOptions
source§fn default() -> OpenOptions
fn default() -> OpenOptions
Returns the “default value” for a type. Read more
source§impl Hash for OpenOptions
impl Hash for OpenOptions
source§impl PartialEq for OpenOptions
impl PartialEq for OpenOptions
source§fn eq(&self, other: &OpenOptions) -> bool
fn eq(&self, other: &OpenOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OpenOptions
impl Eq for OpenOptions
impl StructuralEq for OpenOptions
impl StructuralPartialEq for OpenOptions
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more