[][src]Enum netcdf::types::VariableType

pub enum VariableType {
    Basic(BasicType),
    String,
    Opaque(OpaqueType),
    Vlen(VlenType),
    Enum(EnumType),
    Compound(CompoundType),
}

Description of the variable

Variants

Basic(BasicType)

A basic numeric type

String

A string type

Opaque(OpaqueType)

Some bytes

Vlen(VlenType)

Variable length array

Enum(EnumType)

Enum type

Compound(CompoundType)

Compound type

Implementations

impl VariableType[src]

pub fn as_basic(&self) -> Option<BasicType>[src]

Get the basic type, if this type is a simple numeric type

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

Get the name of the type. The basic numeric types will have rusty names (u8/i32/f64/string)

impl VariableType[src]

pub fn is_string(&self) -> bool[src]

pub fn is_i8(&self) -> bool[src]

pub fn is_u8(&self) -> bool[src]

pub fn is_i16(&self) -> bool[src]

pub fn is_u16(&self) -> bool[src]

pub fn is_i32(&self) -> bool[src]

pub fn is_u32(&self) -> bool[src]

pub fn is_i64(&self) -> bool[src]

pub fn is_u64(&self) -> bool[src]

pub fn is_f32(&self) -> bool[src]

pub fn is_f64(&self) -> bool[src]

Trait Implementations

impl Clone for VariableType[src]

impl Debug for VariableType[src]

impl Into<VariableType> for CompoundType[src]

impl Into<VariableType> for BasicType[src]

impl Into<VariableType> for EnumType[src]

impl Into<VariableType> for VlenType[src]

impl Into<VariableType> for OpaqueType[src]

Auto Trait Implementations

impl RefUnwindSafe for VariableType

impl Send for VariableType

impl Sync for VariableType

impl Unpin for VariableType

impl UnwindSafe for VariableType

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> Pointable for T[src]

type Init = T

The type for initializers.

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.