Enum uclicious_libucl_sys::ucl_type
source · #[repr(u32)]
pub enum ucl_type {
UCL_OBJECT,
UCL_ARRAY,
UCL_INT,
UCL_FLOAT,
UCL_STRING,
UCL_BOOLEAN,
UCL_TIME,
UCL_USERDATA,
UCL_NULL,
}
Expand description
#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§
source§impl PartialEq<ucl_type> for ucl_type
impl PartialEq<ucl_type> for ucl_type
impl Copy for ucl_type
impl Eq for ucl_type
impl StructuralEq for ucl_type
impl StructuralPartialEq for ucl_type
Auto Trait Implementations§
impl RefUnwindSafe for ucl_type
impl Send for ucl_type
impl Sync for ucl_type
impl Unpin for ucl_type
impl UnwindSafe for ucl_type
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