Enum move_lang::hlir::ast::SingleType_
source · pub enum SingleType_ {
Base(BaseType),
Ref(bool, BaseType),
}
Variants§
Implementations§
source§impl SingleType_
impl SingleType_
pub fn base(_: BaseType) -> SingleType
pub fn bool(loc: Loc) -> SingleType
pub fn address(loc: Loc) -> SingleType
pub fn u8(loc: Loc) -> SingleType
pub fn u64(loc: Loc) -> SingleType
pub fn u128(loc: Loc) -> SingleType
pub fn abilities(&self, loc: Loc) -> AbilitySet
Trait Implementations§
source§impl Clone for SingleType_
impl Clone for SingleType_
source§fn clone(&self) -> SingleType_
fn clone(&self) -> SingleType_
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 SingleType_
impl Debug for SingleType_
source§impl PartialEq<SingleType_> for SingleType_
impl PartialEq<SingleType_> for SingleType_
source§fn eq(&self, other: &SingleType_) -> bool
fn eq(&self, other: &SingleType_) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SingleType_
impl StructuralEq for SingleType_
impl StructuralPartialEq for SingleType_
Auto Trait Implementations§
impl RefUnwindSafe for SingleType_
impl Send for SingleType_
impl Sync for SingleType_
impl Unpin for SingleType_
impl UnwindSafe for SingleType_
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.