[][src]Struct pathfinder::HL

pub struct HL {
    pub style: u8,
    pub f: u64,
    pub t: u64,
    pub from: Option<Coordinate>,
    pub to: Option<Coordinate>,
}

Connection between links. HL stands for HashLink, because it uses hashes for references to other points.

Fields

style: u8f: u64t: u64from: Option<Coordinate>to: Option<Coordinate>

Methods

impl HL
[src]

pub fn new(f: u64, t: u64) -> Self
[src]

pub fn style(&mut self, s: u8)
[src]

Style setter. Values are: 0: Bresenhem. 1: Straight. 2: Ellipse.

pub fn is_connected(&self) -> bool
[src]

Checks if the HL has two endpoint hashes.

Trait Implementations

impl Hash for HL
[src]

impl Find for HL
[src]

fn find<H: Hash>(&self, hash: H) -> Option<Coordinate>
[src]

Matches the Hashes and returns Some if it matches.

impl MinMax for HL
[src]

impl Location for HL
[src]

fn eq<L: Location>(&self, other: &L) -> bool
[src]

Returns if the positions are equal or not.

fn x(&self) -> i16
[src]

Retrieves the X coordinate.

fn y(&self) -> i16
[src]

Retrieves the Y coordinate.

fn sum(&self) -> i16
[src]

Returns the sum of the x and y value.

impl Eq for HL
[src]

impl Copy for HL
[src]

impl Default for HL
[src]

impl PartialEq<HL> for HL
[src]

impl Clone for HL
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for HL
[src]

impl Display for HL
[src]

Auto Trait Implementations

impl Send for HL

impl Sync for HL

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T
[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.