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
Val(Rc<Val>)
The Art
consists of a ref cell holding a value
Comp(Option<Rc<Val>>)
The Art
consists of a thunk that, when forced, computes a value
Unknown
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]
impl Clone for ArtContent
[src]
fn clone(&self) -> ArtContent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for ArtContent
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for ArtContent
[src]
impl PartialEq for ArtContent
[src]
fn eq(&self, __arg_0: &ArtContent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ArtContent) -> bool
This method tests for !=
.