pub enum GaiaConstant {
}Expand description
Gaia 常量
Variants§
Bool(bool)
I8(i8)
U8(u8)
I16(i16)
U16(u16)
I32(i32)
U32(u32)
I64(i64)
U64(u64)
F32(f32)
F64(f64)
String(String)
Blob(Vec<u8>)
原始二进制数据 (用于权重、常量数组等)
Array(Vec<GaiaConstant>)
常量数组
Null
空值/空引用
Trait Implementations§
Source§impl Clone for GaiaConstant
impl Clone for GaiaConstant
Source§fn clone(&self) -> GaiaConstant
fn clone(&self) -> GaiaConstant
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 GaiaConstant
impl Debug for GaiaConstant
Source§impl<'de> Deserialize<'de> for GaiaConstant
impl<'de> Deserialize<'de> for GaiaConstant
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GaiaConstant
impl PartialEq for GaiaConstant
Source§impl Serialize for GaiaConstant
impl Serialize for GaiaConstant
impl StructuralPartialEq for GaiaConstant
Auto Trait Implementations§
impl Freeze for GaiaConstant
impl RefUnwindSafe for GaiaConstant
impl Send for GaiaConstant
impl Sync for GaiaConstant
impl Unpin for GaiaConstant
impl UnwindSafe for GaiaConstant
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