pub enum PakValue {
String(String),
Float(u64),
Int(i64),
Uint(u64),
Boolean(bool),
Void,
}
Variants§
Implementations§
Source§impl PakValue
impl PakValue
pub fn as_string(&self) -> Option<String>
pub fn as_f64(&self) -> Option<f64>
pub fn as_f32(&self) -> Option<f32>
pub fn as_u64(&self) -> Option<u64>
pub fn as_u32(&self) -> Option<u32>
pub fn as_u16(&self) -> Option<u16>
pub fn as_u8(&self) -> Option<u8>
pub fn as_i64(&self) -> Option<i64>
pub fn as_i32(&self) -> Option<i32>
pub fn as_i16(&self) -> Option<i16>
pub fn as_i8(&self) -> Option<i8>
pub fn as_bool(&self) -> Option<bool>
pub fn float(float: impl Into<f64>) -> Self
pub fn int(integer: impl Into<i64>) -> Self
pub fn uint(integer: impl Into<u64>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PakValue
impl<'de> Deserialize<'de> for PakValue
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 Ord for PakValue
impl Ord for PakValue
Source§impl PartialOrd for PakValue
impl PartialOrd for PakValue
impl Eq for PakValue
Auto Trait Implementations§
impl Freeze for PakValue
impl RefUnwindSafe for PakValue
impl Send for PakValue
impl Sync for PakValue
impl Unpin for PakValue
impl UnwindSafe for PakValue
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