[][src]Enum uclicious_libucl_sys::ucl_type

#[repr(u32)]
pub enum ucl_type {
    UCL_OBJECT,
    UCL_ARRAY,
    UCL_INT,
    UCL_FLOAT,
    UCL_STRING,
    UCL_BOOLEAN,
    UCL_TIME,
    UCL_USERDATA,
    UCL_NULL,
}

#ucl_object_t may have one of specified types, some types are compatible with each other and some are not. For example, you can always convert #UCL_TIME to #UCL_FLOAT. Also you can convert #UCL_FLOAT to #UCL_INTEGER by loosing floating point. Every object may be converted to a string by #ucl_object_tostring_forced() function.

Variants

UCL_OBJECT

< UCL object - key/value pairs

UCL_ARRAY

< UCL array

UCL_INT

< Integer number

UCL_FLOAT

< Floating point number

UCL_STRING

< Null terminated string

UCL_BOOLEAN

< Boolean value

UCL_TIME

< Time value (floating point number of seconds)

UCL_USERDATA

< Opaque userdata pointer (may be used in macros)

UCL_NULL

< Null value

Trait Implementations

impl Clone for ucl_type[src]

impl Copy for ucl_type[src]

impl Debug for ucl_type[src]

impl Eq for ucl_type[src]

impl Hash for ucl_type[src]

impl PartialEq<ucl_type> for ucl_type[src]

impl StructuralEq for ucl_type[src]

impl StructuralPartialEq for ucl_type[src]

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.