Enum sway_ir::irtype::TypeContent
source · pub enum TypeContent {
Unit,
Bool,
Uint(u8),
B256,
String(u64),
Array(Type, u64),
Union(Vec<Type>),
Struct(Vec<Type>),
Slice,
}
Variants§
Trait Implementations§
source§impl Clone for TypeContent
impl Clone for TypeContent
source§fn clone(&self) -> TypeContent
fn clone(&self) -> TypeContent
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 TypeContent
impl Debug for TypeContent
source§impl DebugWithContext for TypeContent
impl DebugWithContext for TypeContent
fn fmt_with_context<'a, 'c>(
&'a self,
formatter: &mut Formatter<'_>,
context: &'c Context
) -> Result
fn with_context<'a, 'c>(
&'a self,
context: &'c Context
) -> WithContext<'a, 'c, Self>
source§impl Hash for TypeContent
impl Hash for TypeContent
source§impl PartialEq<TypeContent> for TypeContent
impl PartialEq<TypeContent> for TypeContent
source§fn eq(&self, other: &TypeContent) -> bool
fn eq(&self, other: &TypeContent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.