pub struct Input {
pub name: Ident,
pub ty: Type,
pub params: Vec<Rc<Parameter>>,
pub tags: Vec<Tag>,
pub id: NodeId,
pub span: Span,
}
Expand description
An Ast node representing the declaration of an input stream.
Fields§
§name: Ident
The name of the input stream
ty: Type
The value type of the input stream
params: Vec<Rc<Parameter>>
The parameters of a parameterized input stream; The vector is empty in non-parametrized streams.
The tags annotated to that input
id: NodeId
The id of the node in the Ast
span: Span
The span in the specification declaring the input stream
Trait Implementations§
Source§impl Ord for Input
impl Ord for Input
Source§impl PartialOrd for Input
impl PartialOrd for Input
impl Eq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl !Send for Input
impl !Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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