forked from syndicate-lang/preserves
NestedValue::domain()
This commit is contained in:
parent
7e3bf2ade5
commit
932375fa49
|
@ -31,6 +31,10 @@ pub trait NestedValue<D: Embeddable>: Sized + Debug + Clone + Eq + Hash + Ord {
|
|||
Value::from(v).wrap()
|
||||
}
|
||||
|
||||
fn domain<E>(e: E) -> Self where D: From<E> {
|
||||
Value::Embedded(e.into()).wrap()
|
||||
}
|
||||
|
||||
fn wrap(anns: Annotations<Self, D>, v: Value<Self, D>) -> Self;
|
||||
|
||||
fn annotations(&self) -> &Annotations<Self, D>;
|
||||
|
|
Loading…
Reference in New Issue