Struct rtlola_parser::ast::Expression [−][src]
pub struct Expression { pub kind: ExpressionKind, pub id: NodeId, pub span: Span, }
Expand description
The Ast representation of a stream expression
Fields
kind: ExpressionKind
The kind of the root expression, e.g., stream access
id: NodeId
The id of the node in the Ast
span: Span
The span in the specification declaring the extend declaration
Implementations
impl Expression
[src]
impl Expression
[src]pub fn parse_discrete_duration(&self) -> Result<u64, String>
[src]
pub fn parse_discrete_duration(&self) -> Result<u64, String>
[src]Parses an expression into a duration for a discrete window ExpressionKind::DiscreteWindowAggregation
pub fn parse_frequency(&self) -> Result<UOM_Frequency, String>
[src]
pub fn parse_frequency(&self) -> Result<UOM_Frequency, String>
[src]Parses an expression into a frequency. Expression must be a positive numeric value with Hz unit.
pub fn parse_freqspec(&self) -> Result<UOM_Frequency, String>
[src]
pub fn parse_freqspec(&self) -> Result<UOM_Frequency, String>
[src]Parses a frequency annotation. Expression must either be a frequency or a duration representing the period
Trait Implementations
impl Clone for Expression
[src]
impl Clone for Expression
[src]fn clone(&self) -> Expression
[src]
fn clone(&self) -> Expression
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for Expression
[src]
impl Debug for Expression
[src]Auto Trait Implementations
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more