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 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 ConnectionExpression
impl Debug for ConnectionExpression
Source§impl Display for ConnectionExpression
impl Display for ConnectionExpression
Source§impl PartialEq for ConnectionExpression
impl PartialEq for ConnectionExpression
Source§impl Serialize for ConnectionExpression
impl Serialize for ConnectionExpression
impl StructuralPartialEq for ConnectionExpression
Auto Trait Implementations§
impl Freeze for ConnectionExpression
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
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