Type Alias ExprFormattedValue

Source
pub type ExprFormattedValue = ExprFormattedValue<SourceRange>;

Aliased Type§

struct ExprFormattedValue {
    pub range: SourceRange,
    pub value: Box<Expr<SourceRange>>,
    pub conversion: ConversionFlag,
    pub format_spec: Option<Box<Expr<SourceRange>>>,
}

Fields§

§range: SourceRange§value: Box<Expr<SourceRange>>§conversion: ConversionFlag§format_spec: Option<Box<Expr<SourceRange>>>

Trait Implementations§

Source§

impl Located for ExprFormattedValue

Source§

impl LocatedMut for ExprFormattedValue

Source§

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

Source§

impl<R: Clone> Clone for ExprFormattedValue<R>

Source§

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

Source§

type Mapped = ExprFormattedValue<U>

Source§

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

Source§

impl<R> Node for ExprFormattedValue<R>

Source§

const NAME: &'static str = "FormattedValue"

Source§

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

Source§

impl<R: PartialEq> PartialEq for ExprFormattedValue<R>

Source§

fn eq(&self, other: &ExprFormattedValue<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 ExprFormattedValue<R>