Enum move_ir_types::ast::Ability
source · pub enum Ability {
Copy,
Drop,
Store,
Key,
}
Expand description
The abilities of a type. Analogous to move_binary_format::file_format::Ability
.
Variants§
Copy
Allows values of types with this ability to be copied
Drop
Allows values of types with this ability to be dropped or if left in a local at return
Store
Allows values of types with this ability to exist inside a struct in global storage
Key
Allows the type to serve as a key for global storage operations
Implementations§
Trait Implementations§
source§impl Ord for Ability
impl Ord for Ability
source§impl PartialEq<Ability> for Ability
impl PartialEq<Ability> for Ability
source§impl PartialOrd<Ability> for Ability
impl PartialOrd<Ability> for Ability
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 more