Enum dtrace_parser::DataType[][src]

pub enum DataType {
    U8,
    U16,
    U32,
    U64,
    I8,
    I16,
    I32,
    I64,
    String,
}

Represents the data type of a single probe argument.

Variants

U8
U16
U32
U64
I8
I16
I32
I64
String

Implementations

impl DataType[src]

pub fn to_c_type(&self) -> String[src]

Convert a type into its C type represenation as a string

pub fn to_rust_ffi_type(&self) -> String[src]

Return the Rust FFI type representation of this data type

pub fn to_rust_type(&self) -> String[src]

Return the native Rust type representation of this data type

Trait Implementations

impl Clone for DataType[src]

impl Debug for DataType[src]

impl PartialEq<DataType> for DataType[src]

impl StructuralPartialEq for DataType[src]

impl TryFrom<&'_ Pair<'_, Rule>> for DataType[src]

type Error = DTraceError

The type returned in the event of a conversion error.

impl TryFrom<&'_ Pairs<'_, Rule>> for DataType[src]

type Error = DTraceError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.