[−][src]Struct pathfinder::HL
Connection between links. HL stands for HashLink, because it uses hashes for references to other points.
Fields
style: EdgeStyle
f: u64
t: u64
from: Option<Coordinate>
to: Option<Coordinate>
Methods
impl HL
[src]
pub fn new(f: u64, t: u64) -> Self
[src]
pub fn style(&mut self, style: EdgeStyle)
[src]
Sets the algorithm the edge will use to be drawn.
Examples
Sets the style to be 'straight' meaning sharp like an L shape.
let b = cluster!(); let mut a = node!(); a.link(&b); a.hl_mut(0)?.style(EdgeStyle::Straight);
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]
fn min_max(&self) -> (Coordinate, Coordinate)
[src]
impl Location for HL
[src]
fn position(&self) -> Coordinate
[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 Default for HL
[src]
impl Copy for HL
[src]
impl Eq for HL
[src]
impl PartialEq<HL> for HL
[src]
impl Clone for HL
[src]
fn clone(&self) -> 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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,