Struct wireplumber::spa::json::SpaJson

source ·
pub struct SpaJson { /* private fields */ }
Available on crate feature v0_4_8 only.
Expand description

GLib type: Shared boxed type with reference counted clone semantics.

Implementations§

source§

impl SpaJson

source

pub fn as_ptr(&self) -> *mut WpSpaJson

Return the inner pointer to the underlying C value.

source

pub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const *const WpSpaJson) -> &'a Self

Borrows the underlying C value.

source§

impl SpaJson

source

pub fn new_boolean(value: bool) -> SpaJson

source

pub fn new_float(value: f32) -> SpaJson

source

pub fn new_int(value: i32) -> SpaJson

source

pub fn new_null() -> SpaJson

source

pub fn new_string(value: &str) -> SpaJson

source

pub fn copy(&self) -> SpaJson

source

pub fn ensure_unique_owner(self) -> SpaJson

source

pub fn size(&self) -> usize

source

pub fn is_array(&self) -> bool

source

pub fn is_boolean(&self) -> bool

source

pub fn is_float(&self) -> bool

source

pub fn is_int(&self) -> bool

source

pub fn is_null(&self) -> bool

source

pub fn is_object(&self) -> bool

source

pub fn is_string(&self) -> bool

source

pub fn is_unique_owner(&self) -> bool

source

pub fn new_iterator(&self) -> Iterator

source

pub fn parse_boolean(&self) -> Option<bool>

source

pub fn parse_float(&self) -> Option<f32>

source

pub fn parse_int(&self) -> Option<i32>

source

pub fn parse_string(&self) -> GString

source§

impl SpaJson

source

pub fn new_array<T, I: IntoIterator<Item = T>>(items: I) -> Self

source

pub fn new_object<T, K: AsRef<str>, I: IntoIterator<Item = (K, T)>>( props: I ) -> Self

source

pub fn try_from_variant(variant: &Variant) -> Result<Self, BuildError>

source§

impl SpaJson

source

pub fn deserialize_from_str<'a, T: Deserialize<'a>>( s: &'a str ) -> Result<T, Error>

Available on crate features serde and v0_4_10 only.
source

pub fn deserialize_from_gstr<'a, T: Deserialize<'a>>( s: &'a GStr ) -> Result<T, Error>

Available on crate feature serde only.
source

pub fn deserialize_from_string<'a, T: Deserialize<'a>>( s: &str ) -> Result<T, Error>

Available on crate feature serde only.
source

pub fn deserialize_to<'a, T: Deserialize<'a>>(&'a self) -> Result<T, Error>

Available on crate feature serde only.
source§

impl SpaJson

source

pub fn from_string(json: &str) -> Self

source

pub unsafe fn wrap_string(json: &str) -> Self

source

pub unsafe fn wrap_gstr(json: &GStr) -> Self

source

pub unsafe fn wrap(spa: NonNull<spa_json>) -> Self

source

pub fn make_unique(&mut self)

source

pub fn parse_str(&self) -> Cow<'_, str>

source

pub fn parse_str_ptr(&self) -> Option<*const str>

source

pub fn spa_json(&self) -> *const spa_json

source

pub fn borrow<'a>(&'a self) -> &'a SpaJsonRef<'a>

source

pub fn data(&self) -> *const str

source

pub unsafe fn data_unchecked(&self) -> &str

source

pub fn get_data(&mut self) -> &str

source

pub fn run_with_data<R, F: FnOnce(&str) -> R>(&self, f: F) -> R

source

pub fn parse_with_str<R, F: FnOnce(Cow<'_, str>) -> R>(&self, f: F) -> Option<R>

source

pub fn to_string(&self) -> String

source

pub fn to_gstring(&self) -> GString

source

pub fn parse_char(&self) -> Result<char, ParseError>

source

pub fn parse_null(&self) -> Option<()>

source

pub fn parse_array<'a>(&'a self) -> Option<SpaJsonParserRef<'a, 'a>>

source

pub fn parse_object<'a>(&'a self) -> Option<SpaJsonObjectParser<'a, 'a>>

source

pub fn parse_values(&self) -> ValueIterator<SpaJson>

source

pub fn parse_variant(&self) -> Result<Variant, ParseError>

source

pub fn check_parse(&self) -> Result<(), ParseError>

source

pub fn spa_type(&self) -> Result<SpaType, ParseError>

Trait Implementations§

source§

impl<'j> AsRef<SpaJsonRef<'j>> for &'j SpaJson

source§

fn as_ref(&self) -> &SpaJsonRef<'j>

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for SpaJson

source§

fn clone(&self) -> Self

Makes a clone of this shared reference.

This increments the strong reference count of the reference. Dropping the reference will decrement it again.

1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SpaJson

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SpaJson

source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'de> Deserializer<'de> for &'de SpaJson

§

type Error = ParseError

The error type that can be returned if some error occurs during deserialization.
source§

fn deserialize_any<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more
source§

fn deserialize_bool<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a bool value.
source§

fn deserialize_i8<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an i8 value.
source§

fn deserialize_i16<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an i16 value.
source§

fn deserialize_i32<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an i32 value.
source§

fn deserialize_i64<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an i64 value.
source§

fn deserialize_u8<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a u8 value.
source§

fn deserialize_u16<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a u16 value.
source§

fn deserialize_u32<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a u32 value.
source§

fn deserialize_u64<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a u64 value.
source§

fn deserialize_f32<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a f32 value.
source§

fn deserialize_f64<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a f64 value.
source§

fn deserialize_char<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a char value.
source§

fn deserialize_str<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_string<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_bytes<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_byte_buf<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_option<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an optional value. Read more
source§

fn deserialize_unit<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a unit value.
source§

fn deserialize_unit_struct<V: Visitor<'de>>( self, name: &'static str, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a unit struct with a particular name.
source§

fn deserialize_newtype_struct<V: Visitor<'de>>( self, name: &'static str, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a newtype struct with a particular name.
source§

fn deserialize_seq<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a sequence of values.
source§

fn deserialize_tuple<V: Visitor<'de>>( self, len: usize, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data.
source§

fn deserialize_tuple_struct<V: Visitor<'de>>( self, name: &'static str, len: usize, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields.
source§

fn deserialize_map<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a map of key-value pairs.
source§

fn deserialize_struct<V: Visitor<'de>>( self, name: &'static str, fields: &'static [&'static str], visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a struct with a particular name and fields.
source§

fn deserialize_enum<V: Visitor<'de>>( self, name: &'static str, variants: &'static [&'static str], visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an enum value with a particular name and possible variants.
source§

fn deserialize_identifier<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting the name of a struct field or the discriminant of an enum variant.
source§

fn deserialize_ignored_any<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
source§

fn deserialize_i128<V>( self, visitor: V ) -> Result<<V as Visitor<'de>>::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i128 value. Read more
source§

fn deserialize_u128<V>( self, visitor: V ) -> Result<<V as Visitor<'de>>::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. Read more
source§

fn is_human_readable(&self) -> bool

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more
source§

impl<'de> Deserializer<'de> for &'de mut SpaJson

§

type Error = ParseError

The error type that can be returned if some error occurs during deserialization.
source§

fn deserialize_any<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more
source§

fn deserialize_bool<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a bool value.
source§

fn deserialize_i8<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an i8 value.
source§

fn deserialize_i16<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an i16 value.
source§

fn deserialize_i32<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an i32 value.
source§

fn deserialize_i64<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an i64 value.
source§

fn deserialize_u8<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a u8 value.
source§

fn deserialize_u16<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a u16 value.
source§

fn deserialize_u32<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a u32 value.
source§

fn deserialize_u64<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a u64 value.
source§

fn deserialize_f32<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a f32 value.
source§

fn deserialize_f64<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a f64 value.
source§

fn deserialize_char<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a char value.
source§

fn deserialize_str<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_string<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_bytes<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_byte_buf<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_option<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an optional value. Read more
source§

fn deserialize_unit<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a unit value.
source§

fn deserialize_unit_struct<V: Visitor<'de>>( self, name: &'static str, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a unit struct with a particular name.
source§

fn deserialize_newtype_struct<V: Visitor<'de>>( self, name: &'static str, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a newtype struct with a particular name.
source§

fn deserialize_seq<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a sequence of values.
source§

fn deserialize_tuple<V: Visitor<'de>>( self, len: usize, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data.
source§

fn deserialize_tuple_struct<V: Visitor<'de>>( self, name: &'static str, len: usize, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields.
source§

fn deserialize_map<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a map of key-value pairs.
source§

fn deserialize_struct<V: Visitor<'de>>( self, name: &'static str, fields: &'static [&'static str], visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a struct with a particular name and fields.
source§

fn deserialize_enum<V: Visitor<'de>>( self, name: &'static str, variants: &'static [&'static str], visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an enum value with a particular name and possible variants.
source§

fn deserialize_identifier<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting the name of a struct field or the discriminant of an enum variant.
source§

fn deserialize_ignored_any<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
source§

fn deserialize_i128<V>( self, visitor: V ) -> Result<<V as Visitor<'de>>::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i128 value. Read more
source§

fn deserialize_u128<V>( self, visitor: V ) -> Result<<V as Visitor<'de>>::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. Read more
source§

fn is_human_readable(&self) -> bool

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more
source§

impl<'de> Deserializer<'de> for SpaJson

§

type Error = ParseError

The error type that can be returned if some error occurs during deserialization.
source§

fn deserialize_bytes<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_unit_struct<V: Visitor<'de>>( self, _name: &'static str, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a unit struct with a particular name.
source§

fn deserialize_newtype_struct<V: Visitor<'de>>( self, _name: &'static str, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a newtype struct with a particular name.
source§

fn deserialize_tuple<V: Visitor<'de>>( self, _len: usize, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data.
source§

fn deserialize_tuple_struct<V: Visitor<'de>>( self, _name: &'static str, _len: usize, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields.
source§

fn deserialize_struct<V: Visitor<'de>>( self, _name: &'static str, _fields: &'static [&'static str], visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a struct with a particular name and fields.
source§

fn deserialize_identifier<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting the name of a struct field or the discriminant of an enum variant.
source§

fn deserialize_char<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a char value.
source§

fn deserialize_string<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_byte_buf<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_unit<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a unit value.
source§

fn deserialize_u8<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a u8 value.
source§

fn deserialize_u16<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a u16 value.
source§

fn deserialize_u32<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a u32 value.
source§

fn deserialize_u64<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a u64 value.
source§

fn deserialize_i8<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an i8 value.
source§

fn deserialize_i16<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an i16 value.
source§

fn deserialize_i32<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an i32 value.
source§

fn deserialize_i64<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an i64 value.
source§

fn deserialize_bool<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a bool value.
source§

fn deserialize_f32<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a f32 value.
source§

fn deserialize_f64<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a f64 value.
source§

fn deserialize_option<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an optional value. Read more
source§

fn deserialize_seq<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a sequence of values.
source§

fn deserialize_map<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a map of key-value pairs.
source§

fn deserialize_enum<V: Visitor<'de>>( self, _name: &'static str, _variants: &'static [&'static str], visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an enum value with a particular name and possible variants.
source§

fn deserialize_ignored_any<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
source§

fn deserialize_any<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more
source§

fn deserialize_str<V: Visitor<'de>>( self, visitor: V ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
source§

fn deserialize_i128<V>( self, visitor: V ) -> Result<<V as Visitor<'de>>::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i128 value. Read more
source§

fn deserialize_u128<V>( self, visitor: V ) -> Result<<V as Visitor<'de>>::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. Read more
source§

fn is_human_readable(&self) -> bool

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more
source§

impl Display for SpaJson

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> EnumAccess<'de> for SpaJson

§

type Error = ParseError

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

type Variant = SpaJson

The Visitor that will be used to deserialize the content of the enum variant.
source§

fn variant_seed<V: DeserializeSeed<'de>>( self, seed: V ) -> Result<(V::Value, Self::Variant), Self::Error>

variant is called to identify which variant to deserialize. Read more
source§

fn variant<V>(self) -> Result<(V, Self::Variant), Self::Error>
where V: Deserialize<'de>,

variant is called to identify which variant to deserialize. Read more
source§

impl<'j> Extend<SpaJson> for SpaJsonBuilder

source§

fn extend<I: IntoIterator<Item = SpaJson>>(&mut self, iter: I)

Extends a collection with the contents of an iterator. Read more
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl<'a, 'j> From<&'a SpaJson> for &'a SpaJsonRef<'j>
where 'a: 'j,

source§

fn from(json: &'a SpaJson) -> Self

Converts to this type from the input type.
source§

impl<'a, 'j> From<&'a SpaJsonRef<'j>> for SpaJson

source§

fn from(json: &'a SpaJsonRef<'_>) -> Self

Converts to this type from the input type.
source§

impl From<()> for SpaJson

source§

fn from(_: ()) -> Self

Converts to this type from the input type.
source§

impl From<SpaJson> for Value

source§

fn from(s: SpaJson) -> Self

Converts to this type from the input type.
source§

impl<'j> From<SpaJsonRef<'j>> for SpaJson

source§

fn from(json: SpaJsonRef<'j>) -> Self

Converts to this type from the input type.
source§

impl From<bool> for SpaJson

source§

fn from(value: bool) -> Self

Converts to this type from the input type.
source§

impl From<f32> for SpaJson

source§

fn from(value: f32) -> Self

Converts to this type from the input type.
source§

impl From<i32> for SpaJson

source§

fn from(value: i32) -> Self

Converts to this type from the input type.
source§

impl<T> FromIterator<T> for SpaJson

source§

fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl FromVariant for SpaJson

source§

fn from_variant(variant: &Variant) -> Option<Self>

Tries to extract a value. Read more
source§

impl HasParamSpec for SpaJson

§

type ParamSpec = ParamSpecBoxed

§

type SetValue = SpaJson

Preferred value to be used as setter for the associated ParamSpec.
§

type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, SpaJson>

source§

fn param_spec_builder() -> Self::BuilderFn

source§

impl Hash for SpaJson

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a> IntoIterator for &'a SpaJson

§

type Item = SpaJsonRef<'a>

The type of the elements being iterated over.
§

type IntoIter = Box<dyn Iterator<Item = <&'a SpaJson as IntoIterator>::Item>>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl IntoIterator for SpaJson

§

type Item = SpaJson

The type of the elements being iterated over.
§

type IntoIter = ValueIterator<SpaJson>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl Ord for SpaJson

source§

fn cmp(&self, other: &SpaJson) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for SpaJson

source§

fn eq(&self, other: &SpaJson) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for SpaJson

source§

fn partial_cmp(&self, other: &SpaJson) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for SpaJson

source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl StaticType for SpaJson

source§

fn static_type() -> Type

Returns the type identifier of Self.
source§

impl StaticVariantType for SpaJson

source§

fn static_variant_type() -> Cow<'static, VariantTy>

Returns the VariantType corresponding to Self.
source§

impl ToVariant for SpaJson

source§

fn to_variant(&self) -> Variant

Returns a Variant clone of self.
source§

impl<'de> VariantAccess<'de> for SpaJson

§

type Error = ParseError

The error type that can be returned if some error occurs during deserialization. Must match the error type of our EnumAccess.
source§

fn unit_variant(self) -> Result<(), Self::Error>

Called when deserializing a variant with no values. Read more
source§

fn newtype_variant_seed<T: DeserializeSeed<'de>>( self, seed: T ) -> Result<T::Value, Self::Error>

Called when deserializing a variant with a single value. Read more
source§

fn tuple_variant<V: Visitor<'de>>( self, _len: usize, _visitor: V ) -> Result<V::Value, Self::Error>

Called when deserializing a tuple-like variant. Read more
source§

fn struct_variant<V: Visitor<'de>>( self, _fields: &'static [&'static str], _visitor: V ) -> Result<V::Value, Self::Error>

Called when deserializing a struct-like variant. Read more
source§

fn newtype_variant<T>(self) -> Result<T, Self::Error>
where T: Deserialize<'de>,

Called when deserializing a variant with a single value. Read more
source§

impl Eq for SpaJson

source§

impl StructuralPartialEq for SpaJson

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

source§

impl<T> Property for T
where T: HasParamSpec,

§

type Value = T

source§

impl<T> PropertyGet for T
where T: HasParamSpec,

§

type Value = T

source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

source§

impl<T> StaticTypeExt for T
where T: StaticType,

source§

fn ensure_type()

Ensures that the type has been registered with the type system.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T> ToValueOption for T
where T: ToValue,

source§

impl<T> TransparentType for T

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<'a, T, C, E> FromValueOptional<'a> for T
where T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static,