Enum move_model::ast::SpecBlockTarget
source · pub enum SpecBlockTarget {
Module,
Struct(ModuleId, StructId),
Function(ModuleId, FunId),
FunctionCode(ModuleId, FunId, usize),
Schema(ModuleId, SchemaId, Vec<TypeParameter>),
}
Expand description
Describes the target of a spec block.
Variants§
Module
Struct(ModuleId, StructId)
Function(ModuleId, FunId)
FunctionCode(ModuleId, FunId, usize)
Schema(ModuleId, SchemaId, Vec<TypeParameter>)
Trait Implementations§
source§impl Clone for SpecBlockTarget
impl Clone for SpecBlockTarget
source§fn clone(&self) -> SpecBlockTarget
fn clone(&self) -> SpecBlockTarget
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpecBlockTarget
impl Debug for SpecBlockTarget
source§impl Ord for SpecBlockTarget
impl Ord for SpecBlockTarget
source§fn cmp(&self, other: &SpecBlockTarget) -> Ordering
fn cmp(&self, other: &SpecBlockTarget) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SpecBlockTarget> for SpecBlockTarget
impl PartialEq<SpecBlockTarget> for SpecBlockTarget
source§fn eq(&self, other: &SpecBlockTarget) -> bool
fn eq(&self, other: &SpecBlockTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SpecBlockTarget> for SpecBlockTarget
impl PartialOrd<SpecBlockTarget> for SpecBlockTarget
source§fn partial_cmp(&self, other: &SpecBlockTarget) -> Option<Ordering>
fn partial_cmp(&self, other: &SpecBlockTarget) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SpecBlockTarget
impl StructuralEq for SpecBlockTarget
impl StructuralPartialEq for SpecBlockTarget
Auto Trait Implementations§
impl RefUnwindSafe for SpecBlockTarget
impl Send for SpecBlockTarget
impl Sync for SpecBlockTarget
impl Unpin for SpecBlockTarget
impl UnwindSafe for SpecBlockTarget
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.