pub enum Pick<'a> {
Handle {
node_id: &'a str,
handle_id: Option<&'a str>,
handle_type: HandleType,
},
Node {
node_id: &'a str,
},
Edge {
edge_id: &'a str,
},
Nothing,
}Expand description
What sits at a point on the canvas.
Returned by Flow::pick. Borrows the IDs rather than
cloning them — this reports what is there, it does not hand over anything you
can change. Mutate through the graph operations instead.
Variants§
Handle
A handle on a node.
Fields
§
handle_type: HandleTypeWhether it is a source or target handle.
Node
A node body.
Edge
An edge.
Nothing
Nothing — empty canvas.
Trait Implementations§
impl<'a> Copy for Pick<'a>
impl<'a> Eq for Pick<'a>
impl<'a> StructuralPartialEq for Pick<'a>
Auto Trait Implementations§
impl<'a> Freeze for Pick<'a>
impl<'a> RefUnwindSafe for Pick<'a>
impl<'a> Send for Pick<'a>
impl<'a> Sync for Pick<'a>
impl<'a> Unpin for Pick<'a>
impl<'a> UnsafeUnpin for Pick<'a>
impl<'a> UnwindSafe for Pick<'a>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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