pub struct EvalSpec {
pub annotated_pacing: AnnotatedPacingType,
pub condition: Option<Expression>,
pub eval_expression: Option<Expression>,
pub id: NodeId,
pub span: Span,
}
Expand description
An Ast node representing the evaluation condition and expression of a stream
Fields§
§annotated_pacing: AnnotatedPacingType
The pacing type describing when a new value is computed.
condition: Option<Expression>
The boolean expression defining the condition, if a stream instance is evaluated.
eval_expression: Option<Expression>
The evaluated expression, defining the value of the stream.
id: NodeId
The id of the node in the Ast
span: Span
The span in the specification declaring the extend declaration
Trait Implementations§
Source§impl Ord for EvalSpec
impl Ord for EvalSpec
Source§impl PartialOrd for EvalSpec
impl PartialOrd for EvalSpec
impl Eq for EvalSpec
impl StructuralPartialEq for EvalSpec
Auto Trait Implementations§
impl Freeze for EvalSpec
impl RefUnwindSafe for EvalSpec
impl !Send for EvalSpec
impl !Sync for EvalSpec
impl Unpin for EvalSpec
impl UnwindSafe for EvalSpec
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