#[non_exhaustive]pub struct LexicalName {
pub sigil: String,
pub name: String,
}Expand description
A lexical (my/state) variable named by a PIR operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sigil: StringVariable sigil ($, @, %).
name: StringVariable name without sigil.
Trait Implementations§
Source§impl Clone for LexicalName
impl Clone for LexicalName
Source§fn clone(&self) -> LexicalName
fn clone(&self) -> LexicalName
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 LexicalName
impl Debug for LexicalName
impl Eq for LexicalName
Source§impl PartialEq for LexicalName
impl PartialEq for LexicalName
Source§fn eq(&self, other: &LexicalName) -> bool
fn eq(&self, other: &LexicalName) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LexicalName
Auto Trait Implementations§
impl Freeze for LexicalName
impl RefUnwindSafe for LexicalName
impl Send for LexicalName
impl Sync for LexicalName
impl Unpin for LexicalName
impl UnsafeUnpin for LexicalName
impl UnwindSafe for LexicalName
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