pub enum ClrConstantValue {
Show 16 variants
Boolean(bool),
I1(i8),
U1(u8),
I2(i16),
U2(u16),
I4(i32),
U4(u32),
I8(i64),
U8(u64),
R4(f32),
R8(f64),
String(String),
Null,
Type(ClrTypeReference),
Enum(ClrTypeReference, Box<ClrConstantValue>),
Array(Vec<ClrConstantValue>),
}Expand description
CLR 常量值
Variants§
Boolean(bool)
布尔值
I1(i8)
8 位有符号整数
U1(u8)
8 位无符号整数
I2(i16)
16 位有符号整数
U2(u16)
16 位无符号整数
I4(i32)
32 位有符号整数
U4(u32)
32 位无符号整数
I8(i64)
64 位有符号整数
U8(u64)
64 位无符号整数
R4(f32)
32 位浮点数
R8(f64)
64 位浮点数
String(String)
字符串
Null
空值
Type(ClrTypeReference)
类型引用
Enum(ClrTypeReference, Box<ClrConstantValue>)
枚举值
Array(Vec<ClrConstantValue>)
数组
Trait Implementations§
Source§impl Clone for ClrConstantValue
impl Clone for ClrConstantValue
Source§fn clone(&self) -> ClrConstantValue
fn clone(&self) -> ClrConstantValue
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 ClrConstantValue
impl Debug for ClrConstantValue
Source§impl PartialEq for ClrConstantValue
impl PartialEq for ClrConstantValue
impl StructuralPartialEq for ClrConstantValue
Auto Trait Implementations§
impl Freeze for ClrConstantValue
impl RefUnwindSafe for ClrConstantValue
impl Send for ClrConstantValue
impl Sync for ClrConstantValue
impl Unpin for ClrConstantValue
impl UnwindSafe for ClrConstantValue
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