Struct rustpython_vm::compiler::parser::ast::ExprStarred
source · pub struct ExprStarred<R = TextRange> {
pub range: R,
pub value: Box<Expr<R>, Global>,
pub ctx: ExprContext,
}
Expand description
See also Starred
Fields§
§range: R
§value: Box<Expr<R>, Global>
§ctx: ExprContext
Trait Implementations§
source§impl<R> Clone for ExprStarred<R>where
R: Clone,
impl<R> Clone for ExprStarred<R>where R: Clone,
source§fn clone(&self) -> ExprStarred<R>
fn clone(&self) -> ExprStarred<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 ExprStarred<R>where
R: Debug,
impl<R> Debug for ExprStarred<R>where R: Debug,
source§impl<T, U> Foldable<T, U> for ExprStarred<T>
impl<T, U> Foldable<T, U> for ExprStarred<T>
source§impl<R> From<ExprStarred<R>> for Ast<R>
impl<R> From<ExprStarred<R>> for Ast<R>
source§fn from(payload: ExprStarred<R>) -> Ast<R>
fn from(payload: ExprStarred<R>) -> Ast<R>
Converts to this type from the input type.
source§impl<R> From<ExprStarred<R>> for Expr<R>
impl<R> From<ExprStarred<R>> for Expr<R>
source§fn from(payload: ExprStarred<R>) -> Expr<R>
fn from(payload: ExprStarred<R>) -> Expr<R>
Converts to this type from the input type.
source§impl Located for ExprStarred<SourceRange>
impl Located for ExprStarred<SourceRange>
fn range(&self) -> SourceRange
fn location(&self) -> SourceLocation
fn end_location(&self) -> Option<SourceLocation>
source§impl LocatedMut for ExprStarred<SourceRange>
impl LocatedMut for ExprStarred<SourceRange>
fn range_mut(&mut self) -> &mut SourceRange
source§impl<R> Node for ExprStarred<R>
impl<R> Node for ExprStarred<R>
source§impl Parse for ExprStarred<TextRange>
impl Parse for ExprStarred<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<ExprStarred<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<ExprStarred<R>> for ExprStarred<R>where
R: PartialEq<R>,
impl<R> PartialEq<ExprStarred<R>> for ExprStarred<R>where R: PartialEq<R>,
source§fn eq(&self, other: &ExprStarred<R>) -> bool
fn eq(&self, other: &ExprStarred<R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Ranged for ExprStarred<TextRange>
impl Ranged for ExprStarred<TextRange>
impl<R> StructuralPartialEq for ExprStarred<R>
Auto Trait Implementations§
impl<R> RefUnwindSafe for ExprStarred<R>where R: RefUnwindSafe,
impl<R> Send for ExprStarred<R>where R: Send,
impl<R> Sync for ExprStarred<R>where R: Sync,
impl<R> Unpin for ExprStarred<R>where R: Unpin,
impl<R> UnwindSafe for ExprStarred<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