#[non_exhaustive]
pub enum Pmt {
Null,
String(String),
U32(u32),
U64(u64),
F32(f32),
F64(f64),
VecF32(Vec<f32, Global>),
VecU64(Vec<u64, Global>),
Blob(Vec<u8, Global>),
Any(Box<dyn PmtAny + 'static, Global>),
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Null
String(String)
U32(u32)
U64(u64)
F32(f32)
F64(f64)
VecF32(Vec<f32, Global>)
VecU64(Vec<u64, Global>)
Blob(Vec<u8, Global>)
Any(Box<dyn PmtAny + 'static, Global>)
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Pmt
impl<'de> Deserialize<'de> for Pmt
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Pmt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Pmt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for Pmt
impl Serialize for Pmt
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Pmt
impl Send for Pmt
impl Sync for Pmt
impl Unpin for Pmt
impl !UnwindSafe for Pmt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more