[][src]Struct zamm_yang::codegen::template::concept::auto_init_kb::Link

pub struct Link {
    pub from: StructConfig,
    pub link_type: StructConfig,
    pub to: StructConfig,
}

Represents a binary relation between two nodes.

Fields

from: StructConfig

The struct name of the from-node.

link_type: StructConfig

The struct name of the link type.

to: StructConfig

The struct name of the to-node.

Implementations

impl Link[src]

pub fn as_tuple(&self) -> (&str, &str, &str)[src]

Get the relationship as a 3-tuple of concept names.

Trait Implementations

impl Debug for Link[src]

impl Default for Link[src]

impl Eq for Link[src]

impl PartialEq<Link> for Link[src]

impl StructuralEq for Link[src]

impl StructuralPartialEq for Link[src]

Auto Trait Implementations

Blanket Implementations

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

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> Typeable for T where
    T: Any