Enum golem_wasm_ast::analysis::AnalysedType
source · pub enum AnalysedType {
Show 21 variants
Bool,
S8,
U8,
S16,
U16,
S32,
U32,
S64,
U64,
F32,
F64,
Chr,
Str,
List(Box<AnalysedType>),
Tuple(Vec<AnalysedType>),
Record(Vec<(String, AnalysedType)>),
Flags(Vec<String>),
Enum(Vec<String>),
Option(Box<AnalysedType>),
Result {
ok: Option<Box<AnalysedType>>,
error: Option<Box<AnalysedType>>,
},
Variant(Vec<(String, Option<AnalysedType>)>),
}
Variants§
Bool
S8
U8
S16
U16
S32
U32
S64
U64
F32
F64
Chr
Str
List(Box<AnalysedType>)
Tuple(Vec<AnalysedType>)
Record(Vec<(String, AnalysedType)>)
Flags(Vec<String>)
Enum(Vec<String>)
Option(Box<AnalysedType>)
Result
Variant(Vec<(String, Option<AnalysedType>)>)
Trait Implementations§
source§impl Clone for AnalysedType
impl Clone for AnalysedType
source§fn clone(&self) -> AnalysedType
fn clone(&self) -> AnalysedType
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 AnalysedType
impl Debug for AnalysedType
source§impl From<&PrimitiveValueType> for AnalysedType
impl From<&PrimitiveValueType> for AnalysedType
source§fn from(value: &PrimitiveValueType) -> Self
fn from(value: &PrimitiveValueType) -> Self
Converts to this type from the input type.
source§impl PartialEq for AnalysedType
impl PartialEq for AnalysedType
source§fn eq(&self, other: &AnalysedType) -> bool
fn eq(&self, other: &AnalysedType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AnalysedType
impl StructuralPartialEq for AnalysedType
Auto Trait Implementations§
impl RefUnwindSafe for AnalysedType
impl Send for AnalysedType
impl Sync for AnalysedType
impl Unpin for AnalysedType
impl UnwindSafe for AnalysedType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.