Enum ezno_parser::VariableIdentifier
source · pub enum VariableIdentifier {
Standard(String, Span),
Cursor(CursorId<Self>),
}
Variants§
Implementations§
Trait Implementations§
source§impl ASTNode for VariableIdentifier
impl ASTNode for VariableIdentifier
source§fn get_position(&self) -> Cow<'_, Span>
fn get_position(&self) -> Cow<'_, Span>
Returns position of node as span AS IT WAS PARSED. May be none if AST was doesn’t match anything in source
fn from_reader( reader: &mut impl TokenReader<TSXToken, Span>, _state: &mut ParsingState, _settings: &ParseOptions ) -> ParseResult<Self>
fn to_string_from_buffer<T: ToString>( &self, buf: &mut T, _settings: &ToStringOptions, _depth: u8 )
source§fn from_string(
source: String,
settings: ParseOptions,
source_id: SourceId,
offset: Option<usize>,
cursors: Vec<(usize, EmptyCursorId)>
) -> ParseResult<Self>
fn from_string( source: String, settings: ParseOptions, source_id: SourceId, offset: Option<usize>, cursors: Vec<(usize, EmptyCursorId)> ) -> ParseResult<Self>
From string, with default impl to call abstract method from_reader
source§fn to_string(&self, settings: &ToStringOptions) -> String
fn to_string(&self, settings: &ToStringOptions) -> String
Returns structure as valid string
source§impl Clone for VariableIdentifier
impl Clone for VariableIdentifier
source§fn clone(&self) -> VariableIdentifier
fn clone(&self) -> VariableIdentifier
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 VariableIdentifier
impl Debug for VariableIdentifier
source§impl<T: VariableFieldKind> From<VariableIdentifier> for VariableField<T>
impl<T: VariableFieldKind> From<VariableIdentifier> for VariableField<T>
source§fn from(value: VariableIdentifier) -> Self
fn from(value: VariableIdentifier) -> Self
Converts to this type from the input type.
source§impl<'a> IntoAST<VariableIdentifier> for &'a str
impl<'a> IntoAST<VariableIdentifier> for &'a str
fn into_ast(self) -> VariableIdentifier
source§impl PartialEq<VariableIdentifier> for VariableIdentifier
impl PartialEq<VariableIdentifier> for VariableIdentifier
source§fn eq(&self, other: &VariableIdentifier) -> bool
fn eq(&self, other: &VariableIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SelfRustTokenize for VariableIdentifier
impl SelfRustTokenize for VariableIdentifier
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
source§impl Visitable for VariableIdentifier
impl Visitable for VariableIdentifier
fn visit<TData>( &self, _visitors: &mut (impl VisitorReceiver<TData> + ?Sized), _data: &mut TData, _settings: &VisitSettings, _chain: &mut Annex<'_, Chain> )
fn visit_mut<TData>( &mut self, _visitors: &mut (impl VisitorMutReceiver<TData> + ?Sized), _data: &mut TData, _settings: &VisitSettings, _chain: &mut Annex<'_, Chain> )
impl Eq for VariableIdentifier
impl StructuralEq for VariableIdentifier
impl StructuralPartialEq for VariableIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for VariableIdentifier
impl Send for VariableIdentifier
impl Sync for VariableIdentifier
impl Unpin for VariableIdentifier
impl UnwindSafe for VariableIdentifier
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