[][src]Struct gf::datamodel::Relation

pub struct Relation<'a> {
    pub name: Option<String>,
    pub kind: RelationKind,
    pub ty_instance_ctor: TyInstanceCtor<'a>,
    pub location: Location,
    pub condition: Option<BoundExpr>,
}

Relation of a structure type.

Fields

name: Option<String>

Name.

kind: RelationKind

Kind.

ty_instance_ctor: TyInstanceCtor<'a>

Type instance constructor of related data.

location: Location

Location of related data.

condition: Option<BoundExpr>

Condition that determines whether the relation exists.

Trait Implementations

impl<'a> Eval<'a> for Relation<'a>[src]

type Output = Option<DataPtr<'a>>

Evaluation output type.

Auto Trait Implementations

impl<'a> Send for Relation<'a>

impl<'a> Sync for Relation<'a>

impl<'a> Unpin for Relation<'a>

impl<'a> UnwindSafe for Relation<'a>

impl<'a> RefUnwindSafe for Relation<'a>

Blanket Implementations

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

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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