[][src]Struct ijson::IValue

#[repr(transparent)]pub struct IValue { /* fields omitted */ }

Implementations

impl IValue[src]

pub const NULL: Self[src]

pub const FALSE: Self[src]

pub const TRUE: Self[src]

pub fn type_(&self) -> ValueType[src]

pub fn destructure(self) -> Destructured[src]

pub fn destructure_ref(&self) -> DestructuredRef<'_>[src]

pub fn destructure_mut(&mut self) -> DestructuredMut<'_>[src]

pub fn get(&self, index: impl ValueIndex) -> Option<&IValue>[src]

pub fn get_mut(&mut self, index: impl ValueIndex) -> Option<&mut IValue>[src]

pub fn remove(&mut self, index: impl ValueIndex) -> Option<IValue>[src]

pub fn take(&mut self) -> IValue[src]

pub fn len(&self) -> Option<usize>[src]

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

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

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

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

pub fn to_bool(&self) -> Option<bool>[src]

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

pub fn as_number(&self) -> Option<&INumber>[src]

pub fn as_number_mut(&mut self) -> Option<&mut INumber>[src]

pub fn into_number(self) -> Result<INumber, IValue>[src]

pub fn to_i64(&self) -> Option<i64>[src]

Converts this value to an i64 if it is a number that can be represented exactly

pub fn to_u64(&self) -> Option<u64>[src]

Converts this value to a u64 if it is a number that can be represented exactly

pub fn to_f64(&self) -> Option<f64>[src]

Converts this value to an f64 if it is a number that can be represented exactly

pub fn to_f32(&self) -> Option<f32>[src]

Converts this value to an f32 if it is a number that can be represented exactly

pub fn to_i32(&self) -> Option<i32>[src]

Converts this value to an i32 if it is a number that can be represented exactly

pub fn to_f64_lossy(&self) -> Option<f64>[src]

pub fn to_f32_lossy(&self) -> Option<f32>[src]

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

pub fn as_string(&self) -> Option<&IString>[src]

pub fn as_string_mut(&mut self) -> Option<&mut IString>[src]

pub fn into_string(self) -> Result<IString, IValue>[src]

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

pub fn as_array(&self) -> Option<&IArray>[src]

pub fn as_array_mut(&mut self) -> Option<&mut IArray>[src]

pub fn into_array(self) -> Result<IArray, IValue>[src]

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

pub fn as_object(&self) -> Option<&IObject>[src]

pub fn as_object_mut(&mut self) -> Option<&mut IObject>[src]

pub fn into_object(self) -> Result<IObject, IValue>[src]

Trait Implementations

impl AsMut<IValue> for IArray[src]

impl AsMut<IValue> for INumber[src]

impl AsMut<IValue> for IObject[src]

impl AsMut<IValue> for IString[src]

impl AsRef<IValue> for IArray[src]

impl AsRef<IValue> for INumber[src]

impl AsRef<IValue> for IObject[src]

impl AsRef<IValue> for IString[src]

impl Borrow<IValue> for IArray[src]

impl Borrow<IValue> for INumber[src]

impl Borrow<IValue> for IObject[src]

impl Borrow<IValue> for IString[src]

impl BorrowMut<IValue> for IArray[src]

impl BorrowMut<IValue> for INumber[src]

impl BorrowMut<IValue> for IObject[src]

impl BorrowMut<IValue> for IString[src]

impl Clone for IValue[src]

impl Debug for IValue[src]

impl<'de> Deserialize<'de> for IValue[src]

impl<'de> Deserializer<'de> for &'de IValue[src]

type Error = Error

The error type that can be returned if some error occurs during deserialization. Read more

impl Drop for IValue[src]

impl Eq for IValue[src]

impl<T: Into<IValue> + Clone, '_> From<&'_ [T]> for IValue[src]

impl<'_> From<&'_ mut str> for IValue[src]

impl<'_> From<&'_ str> for IValue[src]

impl<K: Into<IString>, V: Into<IValue>> From<BTreeMap<K, V>> for IValue[src]

impl<K: Into<IString>, V: Into<IValue>> From<HashMap<K, V, RandomState>> for IValue[src]

impl From<IArray> for IValue[src]

impl From<INumber> for IValue[src]

impl From<IObject> for IValue[src]

impl From<IString> for IValue[src]

impl<T: Into<IValue>> From<Option<T>> for IValue[src]

impl From<String> for IValue[src]

impl<T: Into<IValue>> From<Vec<T>> for IValue[src]

impl From<bool> for IValue[src]

impl From<f32> for IValue[src]

impl From<f64> for IValue[src]

impl From<i16> for IValue[src]

impl From<i32> for IValue[src]

impl From<i64> for IValue[src]

impl From<i8> for IValue[src]

impl From<isize> for IValue[src]

impl From<u16> for IValue[src]

impl From<u32> for IValue[src]

impl From<u64> for IValue[src]

impl From<u8> for IValue[src]

impl From<usize> for IValue[src]

impl Hash for IValue[src]

impl<I: ValueIndex> Index<I> for IValue[src]

type Output = IValue

The returned type after indexing.

impl<I: ValueIndex> IndexMut<I> for IValue[src]

impl PartialEq<IValue> for IValue[src]

impl PartialOrd<IValue> for IValue[src]

impl Send for IValue[src]

impl Serialize for IValue[src]

impl Sync for IValue[src]

impl<'a> TryFrom<&'a IValue> for &'a IArray[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a IValue> for &'a INumber[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a IValue> for &'a IObject[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a IValue> for &'a IString[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a mut IValue> for &'a mut IArray[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a mut IValue> for &'a mut INumber[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a mut IValue> for &'a mut IObject[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a mut IValue> for &'a mut IString[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<IValue> for IArray[src]

type Error = IValue

The type returned in the event of a conversion error.

impl TryFrom<IValue> for INumber[src]

type Error = IValue

The type returned in the event of a conversion error.

impl TryFrom<IValue> for IObject[src]

type Error = IValue

The type returned in the event of a conversion error.

impl TryFrom<IValue> for IString[src]

type Error = IValue

The type returned in the event of a conversion error.

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.