Enum bytecode_interpreter::concrete::ty::PartialBaseType
source · pub enum PartialBaseType {
Primitive(PrimitiveType),
Parameter(TypeParameterIndex),
Vector(Box<PartialBaseType>),
Struct(PartialStructInstantiation),
}
Variants§
Primitive(PrimitiveType)
Parameter(TypeParameterIndex)
Vector(Box<PartialBaseType>)
Struct(PartialStructInstantiation)
Implementations§
source§impl PartialBaseType
impl PartialBaseType
pub fn mk_bool() -> Self
pub fn mk_u8() -> Self
pub fn mk_u64() -> Self
pub fn mk_u128() -> Self
pub fn mk_num() -> Self
pub fn mk_address() -> Self
pub fn mk_signer() -> Self
pub fn mk_parameter(idx: TypeParameterIndex) -> Self
pub fn mk_vector(elem: Self) -> Self
pub fn mk_struct(inst: PartialStructInstantiation) -> Self
Trait Implementations§
source§impl Clone for PartialBaseType
impl Clone for PartialBaseType
source§fn clone(&self) -> PartialBaseType
fn clone(&self) -> PartialBaseType
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 PartialBaseType
impl Debug for PartialBaseType
source§impl Display for PartialBaseType
impl Display for PartialBaseType
source§impl Ord for PartialBaseType
impl Ord for PartialBaseType
source§fn cmp(&self, other: &PartialBaseType) -> Ordering
fn cmp(&self, other: &PartialBaseType) -> 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<PartialBaseType> for PartialBaseType
impl PartialEq<PartialBaseType> for PartialBaseType
source§fn eq(&self, other: &PartialBaseType) -> bool
fn eq(&self, other: &PartialBaseType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PartialBaseType> for PartialBaseType
impl PartialOrd<PartialBaseType> for PartialBaseType
source§fn partial_cmp(&self, other: &PartialBaseType) -> Option<Ordering>
fn partial_cmp(&self, other: &PartialBaseType) -> 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 PartialBaseType
impl StructuralEq for PartialBaseType
impl StructuralPartialEq for PartialBaseType
Auto Trait Implementations§
impl RefUnwindSafe for PartialBaseType
impl Send for PartialBaseType
impl Sync for PartialBaseType
impl Unpin for PartialBaseType
impl UnwindSafe for PartialBaseType
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.