[−][src]Struct uclicious::raw::object::ObjectRef
An immutable reference to UCL Object structure. Provides most of the libUCL interface for interacting with parser results.
Methods
impl ObjectRef
[src]
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 deep_copy(&self) -> Object
[src]
Perform a deep copy
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 ObjectRef
[src]
impl Eq for ObjectRef
[src]
impl FromObject<ObjectRef> for i64
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for u64
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for ()
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for String
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for PathBuf
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for SocketAddr
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl<T> FromObject<ObjectRef> for Vec<T> where
T: FromObject<ObjectRef>,
[src]
T: FromObject<ObjectRef>,
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl<T> FromObject<ObjectRef> for Option<T> where
T: FromObject<ObjectRef>,
[src]
T: FromObject<ObjectRef>,
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl<T, S> FromObject<ObjectRef> for HashMap<String, T, S> where
T: FromObject<ObjectRef> + Clone,
S: BuildHasher + Default,
[src]
T: FromObject<ObjectRef> + Clone,
S: BuildHasher + Default,
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for Duration
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for i32
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for u32
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for i16
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for u16
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for i8
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for u8
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for f64
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl FromObject<ObjectRef> for bool
[src]
fn try_from(value: ObjectRef) -> Result<Self, ObjectError>
[src]
impl<'data> IntoIterator for &'data ObjectRef
[src]
type Item = ObjectRef
The type of the elements being iterated over.
type IntoIter = Iter<'data>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl IntoIterator for ObjectRef
[src]
type Item = ObjectRef
The type of the elements being iterated over.
type IntoIter = IntoIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl Ord for ObjectRef
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ObjectRef> for ObjectRef
[src]
impl PartialOrd<ObjectRef> for ObjectRef
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ObjectRef
[src]
impl ToOwned for ObjectRef
[src]
Auto Trait Implementations
impl RefUnwindSafe for ObjectRef
impl !Send for ObjectRef
impl !Sync for ObjectRef
impl Unpin for ObjectRef
impl UnwindSafe for ObjectRef
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<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,