pub enum FlowExpression {
ConnectionExpression(Box<ConnectionExpression>),
BlockExpression(BlockExpression),
}
Expand description
A flow expression.
Variants§
ConnectionExpression(Box<ConnectionExpression>)
BlockExpression(BlockExpression)
Implementations§
source§impl FlowExpression
impl FlowExpression
sourcepub fn as_connection(&self) -> Option<&ConnectionExpression>
pub fn as_connection(&self) -> Option<&ConnectionExpression>
Get the expression as a ConnectionExpression.
sourcepub const fn as_block(&self) -> Option<&BlockExpression>
pub const fn as_block(&self) -> Option<&BlockExpression>
Get the expression as a BlockExpression.
sourcepub fn connection(expr: ConnectionExpression) -> Self
pub fn connection(expr: ConnectionExpression) -> Self
Make a new FlowExpression::ConnectionExpression from a ConnectionExpression.
sourcepub const fn block(expr: BlockExpression) -> Self
pub const fn block(expr: BlockExpression) -> Self
Make a new FlowExpression::BlockExpression from a BlockExpression.
Trait Implementations§
source§impl Clone for FlowExpression
impl Clone for FlowExpression
source§fn clone(&self) -> FlowExpression
fn clone(&self) -> FlowExpression
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FlowExpression
impl Debug for FlowExpression
source§impl FromStr for FlowExpression
impl FromStr for FlowExpression
source§impl PartialEq<FlowExpression> for FlowExpression
impl PartialEq<FlowExpression> for FlowExpression
source§fn eq(&self, other: &FlowExpression) -> bool
fn eq(&self, other: &FlowExpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FlowExpression
impl Serialize for FlowExpression
impl StructuralPartialEq for FlowExpression
Auto Trait Implementations§
impl RefUnwindSafe for FlowExpression
impl Send for FlowExpression
impl Sync for FlowExpression
impl Unpin for FlowExpression
impl UnwindSafe for FlowExpression
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