Struct rustpython_vm::compiler::parser::ast::StmtGlobal
source · pub struct StmtGlobal<R = TextRange> {
pub range: R,
pub names: Vec<Identifier, Global>,
}
Expand description
See also Global
Fields§
§range: R
§names: Vec<Identifier, Global>
Trait Implementations§
source§impl<R> Clone for StmtGlobal<R>where
R: Clone,
impl<R> Clone for StmtGlobal<R>where R: Clone,
source§fn clone(&self) -> StmtGlobal<R>
fn clone(&self) -> StmtGlobal<R>
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<R> Debug for StmtGlobal<R>where
R: Debug,
impl<R> Debug for StmtGlobal<R>where R: Debug,
source§impl<T, U> Foldable<T, U> for StmtGlobal<T>
impl<T, U> Foldable<T, U> for StmtGlobal<T>
source§impl<R> From<StmtGlobal<R>> for Ast<R>
impl<R> From<StmtGlobal<R>> for Ast<R>
source§fn from(payload: StmtGlobal<R>) -> Ast<R>
fn from(payload: StmtGlobal<R>) -> Ast<R>
Converts to this type from the input type.
source§impl<R> From<StmtGlobal<R>> for Stmt<R>
impl<R> From<StmtGlobal<R>> for Stmt<R>
source§fn from(payload: StmtGlobal<R>) -> Stmt<R>
fn from(payload: StmtGlobal<R>) -> Stmt<R>
Converts to this type from the input type.
source§impl Located for StmtGlobal<SourceRange>
impl Located for StmtGlobal<SourceRange>
fn range(&self) -> SourceRange
fn location(&self) -> SourceLocation
fn end_location(&self) -> Option<SourceLocation>
source§impl LocatedMut for StmtGlobal<SourceRange>
impl LocatedMut for StmtGlobal<SourceRange>
fn range_mut(&mut self) -> &mut SourceRange
source§impl<R> Node for StmtGlobal<R>
impl<R> Node for StmtGlobal<R>
source§impl Parse for StmtGlobal<TextRange>
impl Parse for StmtGlobal<TextRange>
fn lex_starts_at( source: &str, offset: TextSize ) -> SoftKeywordTransformer<Lexer<Chars<'_>>>
fn parse_tokens( lxr: impl IntoIterator<Item = Result<(Tok, TextRange), LexicalError>>, source_path: &str ) -> Result<StmtGlobal<TextRange>, BaseError<ParseErrorType>>
fn parse( source: &str, source_path: &str ) -> Result<Self, BaseError<ParseErrorType>>
fn parse_without_path(source: &str) -> Result<Self, BaseError<ParseErrorType>>
fn parse_starts_at( source: &str, source_path: &str, offset: TextSize ) -> Result<Self, BaseError<ParseErrorType>>
source§impl<R> PartialEq<StmtGlobal<R>> for StmtGlobal<R>where
R: PartialEq<R>,
impl<R> PartialEq<StmtGlobal<R>> for StmtGlobal<R>where R: PartialEq<R>,
source§fn eq(&self, other: &StmtGlobal<R>) -> bool
fn eq(&self, other: &StmtGlobal<R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Ranged for StmtGlobal<TextRange>
impl Ranged for StmtGlobal<TextRange>
impl<R> StructuralPartialEq for StmtGlobal<R>
Auto Trait Implementations§
impl<R> RefUnwindSafe for StmtGlobal<R>where R: RefUnwindSafe,
impl<R> Send for StmtGlobal<R>where R: Send,
impl<R> Sync for StmtGlobal<R>where R: Sync,
impl<R> Unpin for StmtGlobal<R>where R: Unpin,
impl<R> UnwindSafe for StmtGlobal<R>where R: UnwindSafe,
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