pub type StmtAnnAssign = StmtAnnAssign<SourceRange>;

Aliased Type§

struct StmtAnnAssign {
    pub range: SourceRange,
    pub target: Box<Expr<SourceRange>>,
    pub annotation: Box<Expr<SourceRange>>,
    pub value: Option<Box<Expr<SourceRange>>>,
    pub simple: bool,
}

Fields§

§range: SourceRange§target: Box<Expr<SourceRange>>§annotation: Box<Expr<SourceRange>>§value: Option<Box<Expr<SourceRange>>>§simple: bool

Trait Implementations§

source§

impl Located for StmtAnnAssign

source§

impl LocatedMut for StmtAnnAssign

source§

fn range_mut(&mut self) -> &mut SourceRange

source§

impl<R: Clone> Clone for StmtAnnAssign<R>

source§

fn clone(&self) -> StmtAnnAssign<R>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<R: Debug> Debug for StmtAnnAssign<R>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T, U> Foldable<T, U> for StmtAnnAssign<T>

§

type Mapped = StmtAnnAssign<U>

source§

fn fold<F: Fold<T, TargetU = U> + ?Sized>( self, folder: &mut F ) -> Result<Self::Mapped, F::Error>

source§

impl<R> Node for StmtAnnAssign<R>

source§

const NAME: &'static str = "AnnAssign"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

impl<R: PartialEq> PartialEq for StmtAnnAssign<R>

source§

fn eq(&self, other: &StmtAnnAssign<R>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<R> StructuralPartialEq for StmtAnnAssign<R>