Struct ezno_parser::ast::VariableId
source · pub struct VariableId(_);
Expand description
Id given to AST that declares a variable
Implementations§
source§impl VariableId
impl VariableId
pub fn new() -> Self
sourcepub const fn new_from_id(id: u16) -> Self
pub const fn new_from_id(id: u16) -> Self
Only use if you know what you are not causing clashing
sourcepub fn unwrap_counter(&self) -> u16
pub fn unwrap_counter(&self) -> u16
TODO temp
pub fn set_counter_bad(value: u16)
Trait Implementations§
source§impl Clone for VariableId
impl Clone for VariableId
source§fn clone(&self) -> VariableId
fn clone(&self) -> VariableId
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 VariableId
impl Debug for VariableId
source§impl From<VariableId> for VariableOrPropertyId
impl From<VariableId> for VariableOrPropertyId
source§fn from(item: VariableId) -> VariableOrPropertyId
fn from(item: VariableId) -> VariableOrPropertyId
Converts to this type from the input type.
source§impl Hash for VariableId
impl Hash for VariableId
source§impl PartialEq<VariableId> for VariableId
impl PartialEq<VariableId> for VariableId
source§fn eq(&self, other: &VariableId) -> bool
fn eq(&self, other: &VariableId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SelfRustTokenize for VariableId
impl SelfRustTokenize for VariableId
fn append_to_token_stream(&self, token_stream: &mut TokenStream)
source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self