[−][src]Struct uclicious::raw::object::Object
Owned and mutable instance of UCL Object.
All methods that do not require mutability should be implemented on ObjectRef
instead.
Methods from Deref<Target = ObjectRef>
pub fn as_mut_ptr(&mut self) -> *mut ucl_object_t
[src]
Return mutable pointer to inner struct.
pub fn as_ptr(&self) -> *const ucl_object_t
[src]
Return const pointer to inner struct.
pub fn is_null(&self) -> bool
[src]
Returns true
if this object is a null.
pub fn is_object(&self) -> bool
[src]
Returns true
if this object is an object (think hashmap).
pub fn is_string(&self) -> bool
[src]
Returns true
if this object is a string.
pub fn is_integer(&self) -> bool
[src]
Returns true
if this object is an integer.
pub fn is_float(&self) -> bool
[src]
Returns true
if this object is a float.
pub fn is_boolean(&self) -> bool
[src]
Returns true
if this object is a boolean type.
pub fn is_array(&self) -> bool
[src]
Returns true
if this object is an array.
pub fn is_time(&self) -> bool
[src]
Returns true
if this object is a time/duration.
pub fn priority(&self) -> Priority
[src]
Get priority assigned to the object.
pub fn kind(&self) -> ucl_type_t
[src]
Get type/kind of given object
pub fn key(&self) -> Option<String>
[src]
Get key assigned to the object
pub fn lookup<K: AsRef<str>>(&self, key: K) -> Option<ObjectRef>
[src]
Lookup a key within an object with type Object.
pub fn lookup_path<K: AsRef<str>>(&self, path: K) -> Option<ObjectRef>
[src]
Perform a nested lookup with dot notation.
pub fn as_string(&self) -> Option<String>
[src]
Return string value or None.
pub fn as_i64(&self) -> Option<i64>
[src]
Return an integer value or None.
pub fn as_time(&self) -> Option<f64>
[src]
Return a float number of seconds. Only works if object is time.
pub fn as_f64(&self) -> Option<f64>
[src]
Return a float value or None. This function also works on time object.
pub fn as_bool(&self) -> Option<bool>
[src]
Return a boolean value or None.
pub fn as_null(&self) -> Option<()>
[src]
Return ()
or None.
pub fn iter(&self) -> Iter
[src]
Preferred way to construct an iterator. Items returned by this iterator are always ObjectRef
.
Trait Implementations
impl AsRef<ObjectRef> for Object
[src]
impl Borrow<ObjectRef> for Object
[src]
impl Debug for Object
[src]
impl Deref for Object
[src]
type Target = ObjectRef
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for Object
[src]
impl Drop for Object
[src]
Objects may not actually dropped, but their reference count is decreased.
impl<'_> From<&'_ str> for Object
[src]
impl From<bool> for Object
[src]
impl From<f64> for Object
[src]
impl From<i64> for Object
[src]
Auto Trait Implementations
impl RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: FromObject<T>,
[src]
U: FromObject<T>,
fn try_into(Self) -> Result<U, ObjectError>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,