[−][src]Enum simd_json::value::borrowed::Value
Borrowed JSON-DOM Value, consider using the ValueTrait
to access its content
Variants
Static(StaticNode)Static values
string type
array type
object type
Implementations
impl<'value> Value<'value>[src]
#[must_use]pub fn into_static(self) -> Value<'static>[src]
Enforces static lifetime on a borrowed value, this will force all strings to become owned COW's, the same applies for Object keys.
#[must_use]pub fn clone_static(&self) -> Value<'static>[src]
Clones the current value and enforces a static lifetime, it works the same
as into_static but includes cloning logic
Trait Implementations
impl<'value> Builder<'value> for Value<'value>[src]
#[must_use]pub fn null() -> Self[src]
#[must_use]pub fn array_with_capacity(capacity: usize) -> Self[src]
#[must_use]pub fn object_with_capacity(capacity: usize) -> Self[src]
#[must_use]pub fn array() -> Self[src]
#[must_use]pub fn object() -> Self[src]
impl<'value> Clone for Value<'value>[src]
impl<'value> Debug for Value<'value>[src]
impl<'value> Default for Value<'value>[src]
impl<'de> Deserialize<'de> for Value<'de>[src]
pub fn deserialize<D>(deserializer: D) -> Result<Value<'de>, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl<'de> Deserializer<'de> for Value<'de>[src]
type Error = Error
The error type that can be returned if some error occurs during deserialization. Read more
pub fn deserialize_any<V>(self, visitor: V) -> Result<V::Value, Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_option<V>(self, visitor: V) -> Result<V::Value, Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_struct<V>(
self,
_name: &'static str,
_fields: &'static [&'static str],
visitor: V
) -> Result<V::Value, Error> where
V: Visitor<'de>, [src]
self,
_name: &'static str,
_fields: &'static [&'static str],
visitor: V
) -> Result<V::Value, Error> where
V: Visitor<'de>,
pub fn deserialize_bool<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_i8<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_i16<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_i32<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_i64<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_i128<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_u8<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_u16<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_u32<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_u64<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_u128<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_f32<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_f64<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_char<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_str<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_string<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_bytes<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_byte_buf<V>(
self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_unit<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_unit_struct<V>(
self,
name: &'static str,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
self,
name: &'static str,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_newtype_struct<V>(
self,
name: &'static str,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
self,
name: &'static str,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_seq<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_tuple<V>(
self,
len: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
self,
len: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_tuple_struct<V>(
self,
name: &'static str,
len: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
self,
name: &'static str,
len: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_map<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
V: Visitor<'de>,
pub fn deserialize_enum<V>(
self,
name: &'static str,
variants: &'static [&'static str],
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
self,
name: &'static str,
variants: &'static [&'static str],
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_identifier<V>(
self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_ignored_any<V>(
self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>, [src]
self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn is_human_readable(&self) -> bool[src]
impl<'value> Display for Value<'value>[src]
impl<'value> From<&'value str> for Value<'value>[src]
impl<'value> From<()> for Value<'value>[src]
impl<'value> From<Cow<'value, str>> for Value<'value>[src]
impl<'value> From<HashMap<Cow<'value, str>, Value<'value>, RandomState>> for Value<'value>[src]
impl<'value, T> From<Option<T>> for Value<'value> where
Value<'value>: From<T>, [src]
Value<'value>: From<T>,
impl<'value> From<StaticNode> for Value<'value>[src]
#[must_use]pub fn from(s: StaticNode) -> Self[src]
impl<'value> From<String> for Value<'value>[src]
impl<'_> From<Value<'_>> for Value[src]
#[must_use]pub fn from(b: BorrowedValue<'_>) -> Self[src]
impl<'value> From<Value> for Value<'value>[src]
#[must_use]pub fn from(b: OwnedValue) -> Self[src]
impl<'value, S> From<Vec<S, Global>> for Value<'value> where
Value<'value>: From<S>, [src]
Value<'value>: From<S>,
impl<'value> From<bool> for Value<'value>[src]
impl<'value> From<f32> for Value<'value>[src]
impl<'value> From<f64> for Value<'value>[src]
impl<'value> From<i16> for Value<'value>[src]
impl<'value> From<i32> for Value<'value>[src]
impl<'value> From<i64> for Value<'value>[src]
impl<'value> From<i8> for Value<'value>[src]
impl<'value> From<u16> for Value<'value>[src]
impl<'value> From<u32> for Value<'value>[src]
impl<'value> From<u64> for Value<'value>[src]
impl<'value> From<u8> for Value<'value>[src]
impl<'value> From<usize> for Value<'value>[src]
impl<'value, K: Into<Cow<'value, str>>, V: Into<Value<'value>>> FromIterator<(K, V)> for Value<'value>[src]
#[must_use]pub fn from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self[src]
impl<'value, V: Into<Value<'value>>> FromIterator<V> for Value<'value>[src]
#[must_use]pub fn from_iter<I: IntoIterator<Item = V>>(iter: I) -> Self[src]
impl<'value, '_> Index<&'_ str> for Value<'value>[src]
type Output = Value<'value>
The returned type after indexing.
#[must_use]pub fn index(&self, index: &str) -> &Self::Output[src]
impl<'value> Index<usize> for Value<'value>[src]
type Output = Value<'value>
The returned type after indexing.
#[must_use]pub fn index(&self, index: usize) -> &Self::Output[src]
impl<'value, '_> IndexMut<&'_ str> for Value<'value>[src]
impl<'value> IndexMut<usize> for Value<'value>[src]
impl<'value> Mutable for Value<'value>[src]
#[must_use]pub fn as_array_mut(&mut self) -> Option<&mut Vec<Value<'value>>>[src]
#[must_use]pub fn as_object_mut(&mut self) -> Option<&mut HashMap<Self::Key, Self>>[src]
pub fn insert<K, V>(&mut self, k: K, v: V) -> Result<Option<Self>, AccessError> where
K: Into<Self::Key>,
V: Into<Self>,
Self::Key: Hash,
Self::Key: Eq, [src]
K: Into<Self::Key>,
V: Into<Self>,
Self::Key: Hash,
Self::Key: Eq,
pub fn remove<Q>(&mut self, k: &Q) -> Result<Option<Self>, AccessError> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq, [src]
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
pub fn push<V>(&mut self, v: V) -> Result<(), AccessError> where
V: Into<Self>, [src]
V: Into<Self>,
pub fn pop(&mut self) -> Result<Option<Self>, AccessError>[src]
pub fn get_mut<Q>(&mut self, k: &Q) -> Option<&mut Self> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq, [src]
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
pub fn get_idx_mut(&mut self, i: usize) -> Option<&mut Self>[src]
impl<'v, T, '_> PartialEq<&'_ [T]> for Value<'v> where
Value<'v>: PartialEq<T>, [src]
Value<'v>: PartialEq<T>,
#[must_use]pub fn eq(&self, other: &&[T]) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'value, T, '_> PartialEq<&'_ T> for Value<'value> where
Value<'value>: PartialEq<T>, [src]
Value<'value>: PartialEq<T>,
#[must_use]pub fn eq(&self, other: &&T) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v, '_> PartialEq<&'_ str> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &&str) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<()> for Value<'v>[src]
#[must_use]pub fn eq(&self, _other: &()) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v, K, T, S> PartialEq<HashMap<K, T, S>> for Value<'v> where
K: AsRef<str> + Hash + Eq,
Value<'v>: PartialEq<T>,
S: BuildHasher, [src]
K: AsRef<str> + Hash + Eq,
Value<'v>: PartialEq<T>,
S: BuildHasher,
#[must_use]pub fn eq(&self, other: &HashMap<K, T, S>) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<String> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &String) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'_> PartialEq<Value<'_>> for Value[src]
#[must_use]pub fn eq(&self, other: &BorrowedValue<'_>) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'value> PartialEq<Value<'value>> for Value<'value>[src]
#[must_use]pub fn eq(&self, other: &Self) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'value> PartialEq<Value> for Value<'value>[src]
#[must_use]pub fn eq(&self, other: &OwnedValue) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<bool> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &bool) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<f32> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &f32) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<f64> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &f64) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<i128> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &i128) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<i16> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &i16) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<i32> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &i32) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<i64> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &i64) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<i8> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &i8) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<str> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &str) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<u128> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &u128) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<u16> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &u16) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<u32> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &u32) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<u64> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &u64) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<u8> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &u8) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'v> PartialEq<usize> for Value<'v>[src]
#[must_use]pub fn eq(&self, other: &usize) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<'value> Serialize for Value<'value>[src]
impl<'value> TryFrom<Value> for BorrowedValue<'value>[src]
type Error = SerdeConversionError
The type returned in the event of a conversion error.
pub fn try_from(item: Value) -> Result<Self, SerdeConversionError>[src]
impl<'value> TryInto<Value> for BorrowedValue<'value>[src]
type Error = SerdeConversionError
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<Value, SerdeConversionError>[src]
impl<'value> Value for Value<'value>[src]
type Key = Cow<'value, str>
The type for Objects
type Array = Vec<Self>
The array structure
type Object = HashMap<Self::Key, Self>
The object structure
#[must_use]pub fn value_type(&self) -> ValueType[src]
#[must_use]pub fn is_null(&self) -> bool[src]
#[must_use]pub fn as_bool(&self) -> Option<bool>[src]
#[must_use]pub fn as_i64(&self) -> Option<i64>[src]
#[must_use]pub fn as_i128(&self) -> Option<i128>[src]
#[must_use]pub fn as_u64(&self) -> Option<u64>[src]
#[must_use]pub fn as_f64(&self) -> Option<f64>[src]
#[must_use]pub fn cast_f64(&self) -> Option<f64>[src]
#[must_use]pub fn as_str(&self) -> Option<&str>[src]
#[must_use]pub fn as_array(&self) -> Option<&Vec<Value<'value>>>[src]
#[must_use]pub fn as_object(&self) -> Option<&HashMap<Self::Key, Self>>[src]
#[must_use]pub fn get<Q>(&self, k: &Q) -> Option<&Self> where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq, [src]
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
#[must_use]pub fn contains_key<Q>(&self, k: &Q) -> bool where
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq, [src]
Q: Hash + Eq + Ord + ?Sized,
Self::Key: Borrow<Q>,
Self::Key: Hash,
Self::Key: Eq,
#[must_use]pub fn get_idx(&self, i: usize) -> Option<&Self>[src]
#[must_use]pub fn is_float(&self) -> bool[src]
#[must_use]pub fn is_integer(&self) -> bool[src]
#[must_use]pub fn is_number(&self) -> bool[src]
#[must_use]pub fn is_bool(&self) -> bool[src]
#[must_use]pub fn is_i128(&self) -> bool[src]
#[must_use]pub fn is_i64(&self) -> bool[src]
#[must_use]pub fn as_i32(&self) -> Option<i32>[src]
#[must_use]pub fn is_i32(&self) -> bool[src]
#[must_use]pub fn as_i16(&self) -> Option<i16>[src]
#[must_use]pub fn is_i16(&self) -> bool[src]
#[must_use]pub fn as_i8(&self) -> Option<i8>[src]
#[must_use]pub fn is_i8(&self) -> bool[src]
#[must_use]pub fn as_u128(&self) -> Option<u128>[src]
#[must_use]pub fn is_u128(&self) -> bool[src]
#[must_use]pub fn is_u64(&self) -> bool[src]
#[must_use]pub fn as_usize(&self) -> Option<usize>[src]
#[must_use]pub fn is_usize(&self) -> bool[src]
#[must_use]pub fn as_u32(&self) -> Option<u32>[src]
#[must_use]pub fn is_u32(&self) -> bool[src]
#[must_use]pub fn as_u16(&self) -> Option<u16>[src]
#[must_use]pub fn is_u16(&self) -> bool[src]
#[must_use]pub fn as_u8(&self) -> Option<u8>[src]
#[must_use]pub fn is_u8(&self) -> bool[src]
#[must_use]pub fn is_f64(&self) -> bool[src]
#[must_use]pub fn is_f64_castable(&self) -> bool[src]
#[must_use]pub fn as_f32(&self) -> Option<f32>[src]
#[must_use]pub fn is_f32(&self) -> bool[src]
#[must_use]pub fn is_str(&self) -> bool[src]
#[must_use]pub fn is_array(&self) -> bool[src]
#[must_use]pub fn is_object(&self) -> bool[src]
impl<'value> Writable for Value<'value>[src]
Auto Trait Implementations
impl<'value> RefUnwindSafe for Value<'value>
impl<'value> Send for Value<'value>
impl<'value> Sync for Value<'value>
impl<'value> Unpin for Value<'value>
impl<'value> UnwindSafe for Value<'value>
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> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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>,