pub enum DataType {
Native(DataType),
UniqueId,
Serializable(Type),
}Expand description
A data type supported by the usdt crate.
Variants§
Implementations§
Source§impl DataType
impl DataType
Sourcepub fn to_c_type(&self) -> String
pub fn to_c_type(&self) -> String
Convert a data type to its C type representation as a string.
Sourcepub fn to_rust_ffi_type(&self) -> Type
pub fn to_rust_ffi_type(&self) -> Type
Return the Rust FFI type representation of this data type.
Sourcepub fn to_rust_type(&self) -> Type
pub fn to_rust_type(&self) -> Type
Return the native Rust type representation of this data type.
Trait Implementations§
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl !Send for DataType
impl !Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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