[][src]Trait zamm_yin::concepts::ArchetypeTrait

pub trait ArchetypeTrait<T>: From<usize> {
    const TYPE_ID: usize;
    const TYPE_NAME: &'static str;
    const PARENT_TYPE_ID: usize;

    fn individuate_with_parent(parent_id: usize) -> T;

    fn archetype() -> Archetype { ... }
fn individuate() -> T { ... } }

All formally defined archetypes should be describable by these properties.

Associated Constants

const TYPE_ID: usize

The ID for this archetype.

const TYPE_NAME: &'static str

The name of this archetype.

const PARENT_TYPE_ID: usize

The default parent this archetype inherits from. Every archetype should have at least one parent, so that it doesn't live in a separate universe of its own. This helps enforce that, since allocations are not allowed in Rust constants.

Loading content...

Required methods

fn individuate_with_parent(parent_id: usize) -> T

Individuate with a more specific parent than the current one. This custom parent should inherit from the current type.

Loading content...

Provided methods

fn archetype() -> Archetype

The incarnation of this archetype as a form.

fn individuate() -> T

In the beginning was the Oneness, and the Oneness was nothingness.

And no one said "Let there be the null set," but there was the null set.

The null set was, and it separated itself from the wasn't.

And there was the null set, and there was the set containing the null set -- the first ordinal.

And there was recursion -- the naturals.

From this countable infinity all forms emerged, dividing the Oneness again and again into Self and Other. The time has come to stroke the ego, to stand out from the rest of the world as a unique individual engaging in the act of self-realization.

Loading content...

Implementors

impl ArchetypeTrait<Attribute> for Attribute[src]

impl ArchetypeTrait<Inherits> for Inherits[src]

impl ArchetypeTrait<Owner> for Owner[src]

impl ArchetypeTrait<Value> for Value[src]

impl ArchetypeTrait<Archetype> for Archetype[src]

impl ArchetypeTrait<Tao> for Tao[src]

Loading content...