Struct nannou::geom::graph::edge::Kind[][src]

pub struct Kind {
    pub axis: Axis,
    pub relative: Relative,
}

The unique Edge kind - a combo of a Relative association and an Axis.

Every incoming (parent) Edge for each Node in the graph must be a unique kind. E.g. it does not make sense for a Node to be positioned relatively along the x axis to two different parent Nodes.

Fields

axis: Axis

The axis along which this edge describes some relationship.

relative: Relative

The relative association described by the edge.

Implementations

impl Kind[src]

pub fn new(axis: Axis, relative: Relative) -> Self[src]

Simple constructor for an edge Kind.

pub fn x(relative: Relative) -> Self[src]

Simple constructor for and Edge describing a relative association over the X axis.

pub fn y(relative: Relative) -> Self[src]

Simple constructor for and Edge describing a relative association over the Y axis.

pub fn z(relative: Relative) -> Self[src]

Simple constructor for and Edge describing a relative association over the Z axis.

pub fn position(axis: Axis) -> Self[src]

Simple constructor for an Edge describing a relative position along the given axis.

pub fn orientation(axis: Axis) -> Self[src]

Simple constructor for an Edge describing a relative orientation along the given axis.

pub fn scale(axis: Axis) -> Self[src]

Simple constructor for an Edge describing a relative scale along the given axis.

pub fn x_position() -> Self[src]

Simple constructor for and Edge describing a relative position over the X axis.

pub fn x_orientation() -> Self[src]

Simple constructor for and Edge describing a relative orientation over the X axis.

pub fn x_scale() -> Self[src]

Simple constructor for and Edge describing a relative scale over the X axis.

pub fn y_position() -> Self[src]

Simple constructor for and Edge describing a relative position over the Y axis.

pub fn y_orientation() -> Self[src]

Simple constructor for and Edge describing a relative orientation over the Y axis.

pub fn y_scale() -> Self[src]

Simple constructor for and Edge describing a relative scale over the Y axis.

pub fn z_position() -> Self[src]

Simple constructor for and Edge describing a relative position over the Z axis.

pub fn z_orientation() -> Self[src]

Simple constructor for and Edge describing a relative orientation over the Z axis.

pub fn z_scale() -> Self[src]

Simple constructor for and Edge describing a relative scale over the Z axis.

Trait Implementations

impl Clone for Kind[src]

impl Copy for Kind[src]

impl Debug for Kind[src]

impl Eq for Kind[src]

impl Hash for Kind[src]

impl PartialEq<Kind> for Kind[src]

impl StructuralEq for Kind[src]

impl StructuralPartialEq for Kind[src]

Auto Trait Implementations

impl RefUnwindSafe for Kind

impl Send for Kind

impl Sync for Kind

impl Unpin for Kind

impl UnwindSafe for Kind

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[src]

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

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

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

impl<T> CallHasher for T where
    T: Hash

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> Downcast<T> for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> NodeId for T where
    T: 'static + Copy + Clone + PartialEq<T> + Eq + Hash + Send
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SetParameter for T

impl<T> Style for T where
    T: Any + Debug + PartialEq<T>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,