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