Enum rhai::AccessMode
source · #[non_exhaustive]pub enum AccessMode {
ReadWrite,
ReadOnly,
}
Expand description
(internals) Modes of access.
Exported under the internals
feature only.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for AccessMode
impl Clone for AccessMode
source§fn clone(&self) -> AccessMode
fn clone(&self) -> AccessMode
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 AccessMode
impl Debug for AccessMode
source§impl Hash for AccessMode
impl Hash for AccessMode
source§impl PartialEq for AccessMode
impl PartialEq for AccessMode
source§fn eq(&self, other: &AccessMode) -> bool
fn eq(&self, other: &AccessMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AccessMode
impl Eq for AccessMode
impl StructuralPartialEq for AccessMode
Auto Trait Implementations§
impl Freeze for AccessMode
impl RefUnwindSafe for AccessMode
impl Send for AccessMode
impl Sync for AccessMode
impl Unpin for AccessMode
impl UnwindSafe for AccessMode
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
source§impl<T> Variant for T
impl<T> Variant for T
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant
trait object to Box<dyn Any>
.