#[non_exhaustive]pub enum StorageClass {
LexicalMy,
LexicalState,
PackageOur,
LocalizedPackage,
Parameter,
MethodInvocant,
Implicit,
PackageGlobal,
}Expand description
Storage class represented by a binding.
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.
LexicalMy
Lexical my variable.
LexicalState
Persistent lexical state variable.
PackageOur
our package variable made lexically visible.
LocalizedPackage
local package variable localization.
Parameter
Signature parameter binding.
MethodInvocant
Method invocant binding.
Implicit
Implicit lexical binding such as $_.
PackageGlobal
Package global observed without a lexical binding.
Trait Implementations§
Source§impl Clone for StorageClass
impl Clone for StorageClass
Source§fn clone(&self) -> StorageClass
fn clone(&self) -> StorageClass
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 moreSource§impl Debug for StorageClass
impl Debug for StorageClass
Source§impl Hash for StorageClass
impl Hash for StorageClass
Source§impl PartialEq for StorageClass
impl PartialEq for StorageClass
Source§fn eq(&self, other: &StorageClass) -> bool
fn eq(&self, other: &StorageClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StorageClass
impl Eq for StorageClass
impl StructuralPartialEq for StorageClass
Auto Trait Implementations§
impl Freeze for StorageClass
impl RefUnwindSafe for StorageClass
impl Send for StorageClass
impl Sync for StorageClass
impl Unpin for StorageClass
impl UnsafeUnpin for StorageClass
impl UnwindSafe for StorageClass
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