Struct air_parser::ast::FoldScalar
source · pub struct FoldScalar<'i> {
pub iterable: FoldScalarIterable<'i>,
pub iterator: Scalar<'i>,
pub instruction: Rc<Instruction<'i>>,
pub last_instruction: Option<Rc<Instruction<'i>>>,
pub span: Span,
}
Expand description
(fold scalar_iterable iterator instruction)
Fields§
§iterable: FoldScalarIterable<'i>
§iterator: Scalar<'i>
§instruction: Rc<Instruction<'i>>
§last_instruction: Option<Rc<Instruction<'i>>>
§span: Span
Implementations§
source§impl<'i> FoldScalar<'i>
impl<'i> FoldScalar<'i>
pub fn new( iterable: FoldScalarIterable<'i>, iterator: Scalar<'i>, instruction: Instruction<'i>, last_instruction: Option<Instruction<'i>>, span: Span ) -> Self
Trait Implementations§
source§impl<'i> Debug for FoldScalar<'i>
impl<'i> Debug for FoldScalar<'i>
source§impl Display for FoldScalar<'_>
impl Display for FoldScalar<'_>
source§impl<'i> PartialEq<FoldScalar<'i>> for FoldScalar<'i>
impl<'i> PartialEq<FoldScalar<'i>> for FoldScalar<'i>
source§fn eq(&self, other: &FoldScalar<'i>) -> bool
fn eq(&self, other: &FoldScalar<'i>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.