Type Alias StmtAssign

Source
pub type StmtAssign = StmtAssign<SourceRange>;

Aliased Type§

struct StmtAssign {
    pub range: SourceRange,
    pub targets: Vec<Expr<SourceRange>>,
    pub value: Box<Expr<SourceRange>>,
    pub type_comment: Option<String>,
}

Fields§

§range: SourceRange§targets: Vec<Expr<SourceRange>>§value: Box<Expr<SourceRange>>§type_comment: Option<String>

Trait Implementations§

Source§

impl Located for StmtAssign

Source§

impl LocatedMut for StmtAssign

Source§

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

Source§

impl<R: Clone> Clone for StmtAssign<R>

Source§

fn clone(&self) -> StmtAssign<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 StmtAssign<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 StmtAssign<T>

Source§

type Mapped = StmtAssign<U>

Source§

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

Source§

impl<R> Node for StmtAssign<R>

Source§

const NAME: &'static str = "Assign"

Source§

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

Source§

impl<R: PartialEq> PartialEq for StmtAssign<R>

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<R> StructuralPartialEq for StmtAssign<R>