pub enum AssumedType {
Unknown,
Lambda,
String,
Number,
Boolean,
Base64,
Null,
Undefined,
Range,
Tuple,
Set,
KeyVal,
}
Expand description
推断的变量类型枚举。
用于在语义分析过程中推断变量的可能类型,帮助进行类型检查和优化。
Variants§
Unknown
未知类型。
Lambda
Lambda 函数类型。
String
字符串类型。
Number
数值类型。
Boolean
布尔类型。
Base64
Base64 编码的字节类型。
Null
空值类型。
Undefined
未定义类型。
Range
范围类型。
Tuple
元组类型。
Set
集合类型。
KeyVal
键值对类型。
Trait Implementations§
Source§impl Clone for AssumedType
impl Clone for AssumedType
Source§fn clone(&self) -> AssumedType
fn clone(&self) -> AssumedType
Returns a duplicate 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 AssumedType
impl Debug for AssumedType
Source§impl PartialEq for AssumedType
impl PartialEq for AssumedType
impl StructuralPartialEq for AssumedType
Auto Trait Implementations§
impl Freeze for AssumedType
impl RefUnwindSafe for AssumedType
impl Send for AssumedType
impl Sync for AssumedType
impl Unpin for AssumedType
impl UnwindSafe for AssumedType
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