Struct emerald_kernel_user_link::file::OpenOptions
source · pub struct OpenOptions(/* private fields */);
Implementations§
source§impl OpenOptions
impl OpenOptions
pub const READ: Self = _
pub const WRITE: Self = _
pub const CREATE: Self = _
pub const CREATE_NEW: Self = _
pub const TRUNCATE: Self = _
pub const APPEND: Self = _
pub fn new() -> Self
pub fn read(&mut self, read: bool) -> &mut Self
pub fn write(&mut self, write: bool) -> &mut Self
pub fn create(&mut self, create: bool) -> &mut Self
pub fn create_new(&mut self, create_new: bool) -> &mut Self
pub fn truncate(&mut self, truncate: bool) -> &mut Self
pub fn append(&mut self, append: bool) -> &mut Self
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<Self>
pub fn to_u64(&self) -> u64
Trait Implementations§
source§impl BitAnd for OpenOptions
impl BitAnd for OpenOptions
source§impl BitAndAssign for OpenOptions
impl BitAndAssign for OpenOptions
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for OpenOptions
impl BitOr for OpenOptions
source§impl BitOrAssign for OpenOptions
impl BitOrAssign for OpenOptions
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
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§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