[−][src]Enum tinyjson::JsonValue
Variants
Number(f64)
Boolean(bool)
String(String)
Implementations
impl JsonValue
[src]
pub fn get<T: InnerAsRef>(&self) -> Option<&T>
[src]
pub fn get_mut<T: InnerAsRefMut>(&mut self) -> Option<&mut T>
[src]
pub fn is_bool(&self) -> bool
[src]
pub fn is_number(&self) -> bool
[src]
pub fn is_string(&self) -> bool
[src]
pub fn is_null(&self) -> bool
[src]
pub fn is_array(&self) -> bool
[src]
pub fn is_object(&self) -> bool
[src]
pub fn stringify(&self) -> JsonGenerateResult
[src]
Trait Implementations
impl Clone for JsonValue
[src]
impl Debug for JsonValue
[src]
impl FromStr for JsonValue
[src]
type Err = JsonParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl<'a> Index<&'a str> for JsonValue
[src]
type Output = JsonValue
The returned type after indexing.
fn index(&self, key: &'a str) -> &Self::Output
[src]
impl Index<usize> for JsonValue
[src]
type Output = JsonValue
The returned type after indexing.
fn index(&self, index: usize) -> &Self::Output
[src]
impl<'a> IndexMut<&'a str> for JsonValue
[src]
impl IndexMut<usize> for JsonValue
[src]
impl PartialEq<JsonValue> for JsonValue
[src]
impl StructuralPartialEq for JsonValue
[src]
impl TryInto<()> for JsonValue
[src]
type Error = UnexpectedValue
The type returned in the event of a conversion error.
fn try_into(self) -> Result<(), UnexpectedValue>
[src]
impl TryInto<HashMap<String, JsonValue, RandomState>> for JsonValue
[src]
type Error = UnexpectedValue
The type returned in the event of a conversion error.
fn try_into(self) -> Result<HashMap<String, JsonValue>, UnexpectedValue>
[src]
impl TryInto<String> for JsonValue
[src]
type Error = UnexpectedValue
The type returned in the event of a conversion error.
fn try_into(self) -> Result<String, UnexpectedValue>
[src]
impl TryInto<Vec<JsonValue>> for JsonValue
[src]
type Error = UnexpectedValue
The type returned in the event of a conversion error.
fn try_into(self) -> Result<Vec<JsonValue>, UnexpectedValue>
[src]
impl TryInto<bool> for JsonValue
[src]
type Error = UnexpectedValue
The type returned in the event of a conversion error.
fn try_into(self) -> Result<bool, UnexpectedValue>
[src]
impl TryInto<f64> for JsonValue
[src]
type Error = UnexpectedValue
The type returned in the event of a conversion error.
fn try_into(self) -> Result<f64, UnexpectedValue>
[src]
Auto Trait Implementations
impl RefUnwindSafe for JsonValue
impl Send for JsonValue
impl Sync for JsonValue
impl Unpin for JsonValue
impl UnwindSafe for JsonValue
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,