[][src]Enum nvpair::NvData

pub enum NvData<'a> {
    Unknown,
    Bool,
    BoolV(bool),
    Byte(u8),
    Int8(i8),
    Uint8(u8),
    Int16(i16),
    Uint16(u16),
    Int32(i32),
    Uint32(u32),
    Int64(i64),
    Uint64(u64),
    Str(&'a CStr),
    NvListRef(&'a NvListRef),
}

Variants

Unknown
Bool
BoolV(bool)
Byte(u8)
Int8(i8)
Uint8(u8)
Int16(i16)
Uint16(u16)
Int32(i32)
Uint32(u32)
Int64(i64)
Uint64(u64)
Str(&'a CStr)
NvListRef(&'a NvListRef)

Implementations

impl<'a> NvData<'a>[src]

pub fn as_str(&self) -> Option<&CStr>[src]

pub fn as_string(&self) -> Option<String>[src]

pub fn as_list(&self) -> Option<&NvListRef>[src]

Trait Implementations

impl<'a> Debug for NvData<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for NvData<'a>[src]

impl<'a> !Send for NvData<'a>[src]

impl<'a> !Sync for NvData<'a>[src]

impl<'a> Unpin for NvData<'a>[src]

impl<'a> !UnwindSafe for NvData<'a>[src]

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, 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.