pub struct Point { /* private fields */ }
Expand description
This struct can represent a Port of Input
/Output
of a component.
Two of this Point can represent a Connection that connect two components
use rs_flow::connection::{Point, Connection};
let from = Point::new(1, 0);
let to = Point::new(2, 1);
let conn = Connection::by(from, to);
assert_eq!(conn.from(), from);
assert_eq!(conn.to(), to);
Implementations§
Trait Implementations§
impl Copy for Point
impl Eq for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
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