pub enum Anchoring {
Unanchored,
Class,
Instance,
}Expand description
How a contract names the thing it is a contract for (ONT-001 §0.0).
Variants§
Unanchored
No entity: block. Not a defect: R-5 makes entity: optional by design.
Class
entity: { type } — a shape over every entity of that type.
Instance
entity: { type, ref } — one named thing.
Trait Implementations§
impl Copy for Anchoring
impl Eq for Anchoring
impl StructuralPartialEq for Anchoring
Auto Trait Implementations§
impl Freeze for Anchoring
impl RefUnwindSafe for Anchoring
impl Send for Anchoring
impl Sync for Anchoring
impl Unpin for Anchoring
impl UnsafeUnpin for Anchoring
impl UnwindSafe for Anchoring
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.