[][src]Struct zamm_yin::concepts::archetype::attribute::AttributeArchetype

pub struct AttributeArchetype { /* fields omitted */ }

Archetype representing attributes.

This can only be used to represent attribute archetypes, so unlike Archetype which can represent all archetypes including its own archetype because it's an archetype too, AttributeArchetype is not an attribute and therefore it cannot be used to represent its own archetype.

Implementations

impl AttributeArchetype[src]

pub fn as_archetype(&self) -> Archetype[src]

Forget everything about this, except that it's an ArchetypeForm.

pub fn set_owner_archetype(&mut self, owner_archetype: Archetype)[src]

Restrict the owners for this type of attribute.

pub fn owner_archetype(&self) -> Archetype[src]

Retrieve the owner type for this type of attribute.

pub fn set_value_archetype(&mut self, value_archetype: Archetype)[src]

Restrict the values for this type of attribute.

pub fn value_archetype(&self) -> Archetype[src]

Retrieve the value type for this type of attribute.

Trait Implementations

impl<'a> ArchetypeFormTrait<'a, AttributeArchetype, Attribute> for AttributeArchetype[src]

impl<'a> ArchetypeTrait<'a, AttributeArchetype> for AttributeArchetype[src]

impl<'a> AttributeArchetypeTrait<'a, AttributeArchetype, Attribute> for Attribute[src]

impl Clone for AttributeArchetype[src]

impl CommonNodeTrait for AttributeArchetype[src]

impl Copy for AttributeArchetype[src]

impl Debug for AttributeArchetype[src]

impl Eq for AttributeArchetype[src]

impl FormTrait for AttributeArchetype[src]

impl From<FinalNode> for AttributeArchetype[src]

impl From<usize> for AttributeArchetype[src]

impl Hash for AttributeArchetype[src]

impl Ord for AttributeArchetype[src]

impl PartialEq<AttributeArchetype> for AttributeArchetype[src]

impl PartialOrd<AttributeArchetype> for AttributeArchetype[src]

impl StructuralEq for AttributeArchetype[src]

impl StructuralPartialEq for AttributeArchetype[src]

impl<'a> TryFrom<&'a str> for AttributeArchetype[src]

type Error = String

The type returned in the event of a conversion error.

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<N> NodeTrait for N where
    N: Copy + Ord + Hash
[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> Typeable for T where
    T: Any