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.
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