Enum move_lang::naming::ast::BuiltinTypeName_
source · pub enum BuiltinTypeName_ {
Address,
Signer,
U8,
U64,
U128,
Vector,
Bool,
}
Variants§
Implementations§
source§impl BuiltinTypeName_
impl BuiltinTypeName_
pub const ADDRESS: &'static str = "address"
pub const SIGNER: &'static str = "signer"
pub const U_8: &'static str = "u8"
pub const U_64: &'static str = "u64"
pub const U_128: &'static str = "u128"
pub const BOOL: &'static str = "bool"
pub const VECTOR: &'static str = "vector"
pub fn all_names() -> &'static BTreeSet<Symbol>
pub fn numeric() -> &'static BTreeSet<BuiltinTypeName_>
pub fn bits() -> &'static BTreeSet<BuiltinTypeName_>
pub fn ordered() -> &'static BTreeSet<BuiltinTypeName_>
pub fn is_numeric(&self) -> bool
pub fn resolve(name_str: &str) -> Option<Self>
pub fn declared_abilities(&self, loc: Loc) -> AbilitySet
pub fn tparam_constraints(&self, _loc: Loc) -> Vec<AbilitySet> ⓘ
Trait Implementations§
source§impl Clone for BuiltinTypeName_
impl Clone for BuiltinTypeName_
source§fn clone(&self) -> BuiltinTypeName_
fn clone(&self) -> BuiltinTypeName_
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 BuiltinTypeName_
impl Debug for BuiltinTypeName_
source§impl Display for BuiltinTypeName_
impl Display for BuiltinTypeName_
source§impl Ord for BuiltinTypeName_
impl Ord for BuiltinTypeName_
source§fn cmp(&self, other: &BuiltinTypeName_) -> Ordering
fn cmp(&self, other: &BuiltinTypeName_) -> 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<BuiltinTypeName_> for BuiltinTypeName_
impl PartialEq<BuiltinTypeName_> for BuiltinTypeName_
source§fn eq(&self, other: &BuiltinTypeName_) -> bool
fn eq(&self, other: &BuiltinTypeName_) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BuiltinTypeName_> for BuiltinTypeName_
impl PartialOrd<BuiltinTypeName_> for BuiltinTypeName_
source§fn partial_cmp(&self, other: &BuiltinTypeName_) -> Option<Ordering>
fn partial_cmp(&self, other: &BuiltinTypeName_) -> 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 BuiltinTypeName_
impl StructuralEq for BuiltinTypeName_
impl StructuralPartialEq for BuiltinTypeName_
Auto Trait Implementations§
impl RefUnwindSafe for BuiltinTypeName_
impl Send for BuiltinTypeName_
impl Sync for BuiltinTypeName_
impl Unpin for BuiltinTypeName_
impl UnwindSafe for BuiltinTypeName_
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.