[][src]Trait zamm_yin::tao::relation::attribute::AttributeTrait

pub trait AttributeTrait: FormTrait + Wrapper<BaseType = FinalNode> {
    type OwnerForm: FormTrait + From<FinalNode>;
    type ValueForm: FormTrait + From<FinalNode>;
    pub fn set_owner(&mut self, owner: &Self::OwnerForm) { ... }
pub fn owner(&self) -> Option<Self::OwnerForm> { ... }
pub fn set_value(&mut self, value: &Self::ValueForm) { ... }
pub fn value(&self) -> Option<Self::ValueForm> { ... } }

Interface for all attributes.

Associated Types

type OwnerForm: FormTrait + From<FinalNode>[src]

The Form representing the owner.

type ValueForm: FormTrait + From<FinalNode>[src]

The Form representing the value.

Loading content...

Provided methods

pub fn set_owner(&mut self, owner: &Self::OwnerForm)[src]

Set the owner for this attribute.

pub fn owner(&self) -> Option<Self::OwnerForm>[src]

The owner of an attribute, if it exists.

pub fn set_value(&mut self, value: &Self::ValueForm)[src]

Set the value for this attribute.

pub fn value(&self) -> Option<Self::ValueForm>[src]

The value of an attribute, if it exists.

Loading content...

Implementors

impl AttributeTrait for Attribute[src]

impl AttributeTrait for DefaultValue[src]

impl AttributeTrait for HasProperty[src]

impl AttributeTrait for Inherits[src]

impl AttributeTrait for Owner[src]

impl AttributeTrait for OwnerArchetype[src]

impl AttributeTrait for Value[src]

impl AttributeTrait for ValueArchetype[src]

Loading content...