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.
ReadWrite
Mutable.
ReadOnly
Immutable.
Trait Implementations
sourceimpl Clone for AccessMode
impl Clone for AccessMode
sourcefn clone(&self) -> AccessMode
fn clone(&self) -> AccessMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AccessMode
impl Debug for AccessMode
sourceimpl Hash for AccessMode
impl Hash for AccessMode
sourceimpl PartialEq<AccessMode> for AccessMode
impl PartialEq<AccessMode> for AccessMode
impl Copy for AccessMode
impl Eq for AccessMode
impl StructuralEq for AccessMode
impl StructuralPartialEq for AccessMode
Auto Trait Implementations
impl RefUnwindSafe for AccessMode
impl Send for AccessMode
impl Sync for AccessMode
impl Unpin for AccessMode
impl UnwindSafe for AccessMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more