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 duplicate 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 for FlowExpression
impl PartialEq for FlowExpression
Source§impl Serialize for FlowExpression
impl Serialize for FlowExpression
impl StructuralPartialEq for FlowExpression
Auto Trait Implementations§
impl Freeze for FlowExpression
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
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