Struct egui_graph::NodeSockets
source · pub struct NodeSockets { /* private fields */ }
Expand description
Information about the inputs and outputs for a particular node.
Implementations§
source§impl NodeSockets
impl NodeSockets
sourcepub fn input(&self, ix: usize) -> Option<(Pos2, Vec2)>
pub fn input(&self, ix: usize) -> Option<(Pos2, Vec2)>
The screen position and normal of the input at the given index.
Returns None
if there is no input at the given index.
sourcepub fn output(&self, ix: usize) -> Option<(Pos2, Vec2)>
pub fn output(&self, ix: usize) -> Option<(Pos2, Vec2)>
The screen position and normal of the input at the given index.
Returns None
if there is no output at the given index.
Trait Implementations§
source§impl Clone for NodeSockets
impl Clone for NodeSockets
source§fn clone(&self) -> NodeSockets
fn clone(&self) -> NodeSockets
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 moreAuto Trait Implementations§
impl RefUnwindSafe for NodeSockets
impl Send for NodeSockets
impl Sync for NodeSockets
impl Unpin for NodeSockets
impl UnwindSafe for NodeSockets
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