Struct rtlola_parser::ast::Output
source · [−]pub struct Output {
pub name: Ident,
pub annotated_type: Option<Type>,
pub annotated_pacing_type: Option<Expression>,
pub params: Vec<Rc<Parameter>>,
pub spawn: Option<SpawnSpec>,
pub filter: Option<FilterSpec>,
pub close: Option<CloseSpec>,
pub expression: Expression,
pub id: NodeId,
pub span: Span,
}Expand description
An Ast node representing the declaration of an output stream.
Fields
name: IdentThe name of the output stream
annotated_type: Option<Type>An optional value type annotation of the output stream
annotated_pacing_type: Option<Expression>The pacing type, which defines when a new value of a stream is computed.
params: Vec<Rc<Parameter>>The parameters of a parameterized output stream; The vector is empty in non-parametrized streams
spawn: Option<SpawnSpec>The spawn declaration of a parameterized stream
filter: Option<FilterSpec>The filter declaration of a parameterized stream
close: Option<CloseSpec>The close declaration of parametrized stream
expression: ExpressionThe stream expression of a output stream, e.g., a + b.offset(by: -1).defaults(to: 0)
id: NodeIdThe id of the node in the Ast
span: SpanThe span in the specification declaring the output stream
Trait Implementations
impl Eq for Output
impl StructuralEq for Output
impl StructuralPartialEq for Output
Auto Trait Implementations
impl RefUnwindSafe for Output
impl !Send for Output
impl !Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more