Struct flow_expression_parser::ast::ConnectionExpression
source · pub struct ConnectionExpression { /* private fields */ }
Expand description
A connection between two targets.
Implementations§
source§impl ConnectionExpression
impl ConnectionExpression
sourcepub fn new(
from: ConnectionTargetExpression,
to: ConnectionTargetExpression
) -> Self
pub fn new( from: ConnectionTargetExpression, to: ConnectionTargetExpression ) -> Self
Create a new ConnectionExpression from two ConnectionTargetExpressions.
sourcepub fn into_parts(
self
) -> (ConnectionTargetExpression, ConnectionTargetExpression)
pub fn into_parts( self ) -> (ConnectionTargetExpression, ConnectionTargetExpression)
Get the owned parts of the connection.
sourcepub const fn from(&self) -> &ConnectionTargetExpression
pub const fn from(&self) -> &ConnectionTargetExpression
Get the from target.
sourcepub fn from_mut(&mut self) -> &mut ConnectionTargetExpression
pub fn from_mut(&mut self) -> &mut ConnectionTargetExpression
Get the from target.
sourcepub const fn to(&self) -> &ConnectionTargetExpression
pub const fn to(&self) -> &ConnectionTargetExpression
Get the to target.
sourcepub fn to_mut(&mut self) -> &mut ConnectionTargetExpression
pub fn to_mut(&mut self) -> &mut ConnectionTargetExpression
Get the to target.
Trait Implementations§
source§impl Clone for ConnectionExpression
impl Clone for ConnectionExpression
source§fn clone(&self) -> ConnectionExpression
fn clone(&self) -> ConnectionExpression
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 ConnectionExpression
impl Debug for ConnectionExpression
source§impl Display for ConnectionExpression
impl Display for ConnectionExpression
source§impl PartialEq<ConnectionExpression> for ConnectionExpression
impl PartialEq<ConnectionExpression> for ConnectionExpression
source§fn eq(&self, other: &ConnectionExpression) -> bool
fn eq(&self, other: &ConnectionExpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ConnectionExpression
impl Serialize for ConnectionExpression
impl StructuralPartialEq for ConnectionExpression
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionExpression
impl Send for ConnectionExpression
impl Sync for ConnectionExpression
impl Unpin for ConnectionExpression
impl UnwindSafe for ConnectionExpression
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