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§
source§impl PartialEq for DataType
impl PartialEq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
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