pub struct Output {
pub kind: OutputKind,
pub annotated_type: Option<Type>,
pub params: Vec<Rc<Parameter>>,
pub spawn: Option<SpawnSpec>,
pub eval: Vec<EvalSpec>,
pub close: Option<CloseSpec>,
pub tags: Vec<Tag>,
pub id: NodeId,
pub span: Span,
}Expand description
An Ast node representing the declaration of an output stream.
Fields§
§kind: OutputKindThe kind of the output stream
annotated_type: Option<Type>An optional value type annotation of the output stream
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
eval: Vec<EvalSpec>The eval declaration of a stream,
close: Option<CloseSpec>The close declaration of parametrized stream
The tags annotated to that input
id: NodeIdThe id of the node in the Ast
span: SpanThe span in the specification declaring the output stream
Implementations§
Trait Implementations§
Source§impl Ord for Output
impl Ord for Output
Source§impl PartialOrd for Output
impl PartialOrd for Output
impl Eq for Output
impl StructuralPartialEq for Output
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl !Send for Output
impl !Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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