Enum move_idl_types::IDLAbility
source · [−]#[repr(u8)]
pub enum IDLAbility {
Copy,
Drop,
Store,
Key,
}
Expand description
An Ability
classifies what operations are permitted for a given type
Variants
Copy
Allows values of types with this ability to be copied, via CopyLoc or ReadRef
Drop
Allows values of types with this ability to be dropped, via Pop, WriteRef, StLoc, Eq, Neq, or if left in a local when Ret is invoked Technically also needed for numeric operations (Add, BitAnd, Shift, etc), but all of the types that can be used with those operations have Drop
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: MoveTo, MoveFrom, etc.
Trait Implementations
sourceimpl Clone for IDLAbility
impl Clone for IDLAbility
sourcefn clone(&self) -> IDLAbility
fn clone(&self) -> IDLAbility
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IDLAbility
impl Debug for IDLAbility
sourceimpl<'de> Deserialize<'de> for IDLAbility
impl<'de> Deserialize<'de> for IDLAbility
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for IDLAbility
impl Hash for IDLAbility
sourceimpl JsonSchema for IDLAbility
impl JsonSchema for IDLAbility
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
sourceimpl Ord for IDLAbility
impl Ord for IDLAbility
sourceimpl PartialEq<IDLAbility> for IDLAbility
impl PartialEq<IDLAbility> for IDLAbility
sourceimpl PartialOrd<IDLAbility> for IDLAbility
impl PartialOrd<IDLAbility> for IDLAbility
sourcefn partial_cmp(&self, other: &IDLAbility) -> Option<Ordering>
fn partial_cmp(&self, other: &IDLAbility) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
sourceimpl Serialize for IDLAbility
impl Serialize for IDLAbility
impl Copy for IDLAbility
impl Eq for IDLAbility
impl StructuralEq for IDLAbility
impl StructuralPartialEq for IDLAbility
Auto Trait Implementations
impl RefUnwindSafe for IDLAbility
impl Send for IDLAbility
impl Sync for IDLAbility
impl Unpin for IDLAbility
impl UnwindSafe for IDLAbility
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more