#[non_exhaustive]pub enum LexicalRole {
Read,
Write,
}Expand description
Role of a lexical binding fact (read or write).
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.
Read
Read access to a lexical variable.
Write
Write access (declaration or assignment) to a lexical variable.
Trait Implementations§
Source§impl Clone for LexicalRole
impl Clone for LexicalRole
Source§fn clone(&self) -> LexicalRole
fn clone(&self) -> LexicalRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LexicalRole
Source§impl Debug for LexicalRole
impl Debug for LexicalRole
impl Eq for LexicalRole
Source§impl PartialEq for LexicalRole
impl PartialEq for LexicalRole
Source§fn eq(&self, other: &LexicalRole) -> bool
fn eq(&self, other: &LexicalRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LexicalRole
Auto Trait Implementations§
impl Freeze for LexicalRole
impl RefUnwindSafe for LexicalRole
impl Send for LexicalRole
impl Sync for LexicalRole
impl Unpin for LexicalRole
impl UnsafeUnpin for LexicalRole
impl UnwindSafe for LexicalRole
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