pub struct Point {
pub x: CoordX,
pub y: CoordY,
}Expand description
A lattice point: a column and a row on the routing grid.
Fields§
§x: CoordX§y: CoordYImplementations§
Trait Implementations§
Source§impl From<Point> for Pos2
The inverse: round-tripping a Pos2 moves it to its nearest lattice
point.
impl From<Point> for Pos2
The inverse: round-tripping a Pos2 moves it to its nearest lattice
point.
Source§impl From<Pos2> for Point
A world position onto the lattice point nearest it. The lattice and the
document’s grid are the same grid, so this is
blockworx_geom::grid::grid_i32 per axis — the same rounding
grid_point commits with, so a wire previewed and a wire stored agree.
impl From<Pos2> for Point
A world position onto the lattice point nearest it. The lattice and the
document’s grid are the same grid, so this is
blockworx_geom::grid::grid_i32 per axis — the same rounding
grid_point commits with, so a wire previewed and a wire stored agree.
Source§impl Ord for Point
impl Ord for Point
Source§impl PartialOrd for Point
impl PartialOrd for Point
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more