pub enum Statement {
Label(Loc<Identifier>),
Declaration(Vec<Loc<Identifier>>),
Binding(Binding),
Expression(Loc<Expression>),
PipelineRegMarker(Option<Loc<TypeExpression>>, Option<Loc<Expression>>),
Register(Loc<Register>),
Set {
target: Loc<Expression>,
value: Loc<Expression>,
},
Assert(Loc<Expression>),
}
Variants§
Label(Loc<Identifier>)
Declaration(Vec<Loc<Identifier>>)
Binding(Binding)
Expression(Loc<Expression>)
PipelineRegMarker(Option<Loc<TypeExpression>>, Option<Loc<Expression>>)
Register(Loc<Register>)
Set
Sets the value of the target expression, which must be a Backward port to
the value of value
Assert(Loc<Expression>)
Implementations§
Trait Implementations§
Source§impl WithLocation for Statement
impl WithLocation for Statement
fn at(self, file_id: usize, span: &impl HasCodespan) -> Loc<Self>where
Self: Sized,
fn between( self, file_id: usize, start: &impl HasCodespan, end: &impl HasCodespan, ) -> Loc<Self>
fn between_locs<T, Y>(self, start: &Loc<T>, end: &Loc<Y>) -> Loc<Self>
fn nowhere(self) -> Loc<Self>where
Self: Sized,
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnwindSafe for Statement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more