Enum adapton::reflect::ArtContent [] [src]

pub enum ArtContent {
    Val(Rc<Val>),
    Comp(Option<Rc<Val>>),
    Unknown,
}

The content of an articulation: Either a cell holding a value, or a thunk that has optionally produced a value.

Variants

The Art consists of a ref cell holding a value

The Art consists of a thunk that, when forced, computes a value

Unknown content means that it has not yet dereferenced by any reflective process. A reflective process dereferences an Art by using a reflected DCG to map this Art's Loc to a Node. This node gives one of the two known cases (Val or Comp), above, depending on whether it is a RefNode or a CompNode.

Trait Implementations

impl Debug for ArtContent
[src]

[src]

Formats the value using the given formatter.

impl Clone for ArtContent
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for ArtContent
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for ArtContent
[src]

impl PartialEq for ArtContent
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.