pub trait NativePType:
Send
+ Sync
+ Clone
+ Copy
+ Debug
+ Display
+ PartialEq
+ PartialOrd
+ Default
+ RefUnwindSafe
+ Num
+ NumCast
+ FromPrimitive
+ ToBytes
+ TryFromBytes {
const PTYPE: PType;
// Required methods
fn is_nan(self) -> bool;
fn compare(self, other: Self) -> Ordering;
fn is_eq(self, other: Self) -> bool;
}Expand description
A trait for native Rust types that correspond 1:1 to a PType
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.