pub struct StatementPosition {
pub identifier: VariableIdentifier,
pub is_declare: bool,
}
Fields§
§identifier: VariableIdentifier
§is_declare: bool
Trait Implementations§
Source§impl Clone for StatementPosition
impl Clone for StatementPosition
Source§fn clone(&self) -> StatementPosition
fn clone(&self) -> StatementPosition
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 StatementPosition
impl Debug for StatementPosition
Source§impl ExpressionOrStatementPosition for StatementPosition
impl ExpressionOrStatementPosition for StatementPosition
type FunctionBody = FunctionBody
fn from_reader( reader: &mut impl TokenReader<TSXToken, TokenStart>, state: &mut ParsingState, options: &ParseOptions, ) -> ParseResult<Self>
fn as_option_variable_identifier(&self) -> Option<&VariableIdentifier>
fn as_option_variable_identifier_mut( &mut self, ) -> Option<&mut VariableIdentifier>
fn has_function_body(body: &Self::FunctionBody) -> bool
fn is_declare(&self) -> bool
fn as_option_str(&self) -> Option<&str>
Source§impl PartialEq for StatementPosition
impl PartialEq for StatementPosition
Source§impl SelfRustTokenize for StatementPosition
impl SelfRustTokenize for StatementPosition
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 Serialize for StatementPosition
impl Serialize for StatementPosition
impl StructuralPartialEq for StatementPosition
Auto Trait Implementations§
impl Freeze for StatementPosition
impl RefUnwindSafe for StatementPosition
impl Send for StatementPosition
impl Sync for StatementPosition
impl Unpin for StatementPosition
impl UnwindSafe for StatementPosition
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