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