| 1 | use serderust-analyzer cargo serde 1.0.228 crate/::serrust-analyzer cargo serde_core 1.0.228 ser/::{Serializerust-analyzer cargo serde_core 1.0.228 ser/Serialize#, Serializerrust-analyzer cargo serde_core 1.0.228 ser/Serializer#}; |
| 2 | |
| 3 | use craterust-analyzer cargo ron 0.12.0 crate/::valuerust-analyzer cargo ron 0.12.0 value/::Valuerust-analyzer cargo ron 0.12.0 value/Value#; |
| 4 | |
| 5 | impl Serializerust-analyzer cargo serde_core 1.0.228 ser/Serialize# for Valuerust-analyzer cargo ron 0.12.0 value/Value# { |
| 6 | fn serializerust-analyzer cargo ron 0.12.0 ser/value/impl#[Value][Serialize]serialize().<S>(&self, serializer: S) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<S::Okrust-analyzer cargo serde_core 1.0.228 ser/Serializer#Ok#, S::Errorrust-analyzer cargo serde_core 1.0.228 ser/Serializer#Error#> |
| 7 | where |
| 8 | S: Serializerrust-analyzer cargo serde_core 1.0.228 ser/Serializer#, |
| 9 | { |
| 10 | match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self { |
| 11 | Valuerust-analyzer cargo ron 0.12.0 value/Value#::Boolrust-analyzer cargo ron 0.12.0 value/Value#Bool#(b) => serializer.serialize_boolrust-analyzer cargo serde_core 1.0.228 ser/Serializer#serialize_bool().(b), |
| 12 | Valuerust-analyzer cargo ron 0.12.0 value/Value#::Charrust-analyzer cargo ron 0.12.0 value/Value#Char#(c) => serializer.serialize_charrust-analyzer cargo serde_core 1.0.228 ser/Serializer#serialize_char().(c), |
| 13 | Valuerust-analyzer cargo ron 0.12.0 value/Value#::Maprust-analyzer cargo ron 0.12.0 value/Value#Map#(ref m) => Serializerust-analyzer cargo serde_core 1.0.228 ser/Serialize#::serializerust-analyzer cargo ron 0.12.0 value/map/impl#[Map][Serialize]serialize().(m, serializer), |
| 14 | Valuerust-analyzer cargo ron 0.12.0 value/Value#::Numberrust-analyzer cargo ron 0.12.0 value/Value#Number#(ref number) => Serializerust-analyzer cargo serde_core 1.0.228 ser/Serialize#::serializerust-analyzer cargo ron 0.12.0 value/number/impl#[Number][Serialize]serialize().(number, serializer), |
| 15 | Valuerust-analyzer cargo ron 0.12.0 value/Value#::Optionrust-analyzer cargo ron 0.12.0 value/Value#Option#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref o)) => serializer.serialize_somerust-analyzer cargo serde_core 1.0.228 ser/Serializer#serialize_some().(o.as_refrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/impl#[`Box<T, A>`][`AsRef<T>`]as_ref().()), |
| 16 | Valuerust-analyzer cargo ron 0.12.0 value/Value#::Optionrust-analyzer cargo ron 0.12.0 value/Value#Option#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => serializer.serialize_nonerust-analyzer cargo serde_core 1.0.228 ser/Serializer#serialize_none().(), |
| 17 | Valuerust-analyzer cargo ron 0.12.0 value/Value#::Stringrust-analyzer cargo ron 0.12.0 value/Value#String#(ref s) => serializer.serialize_strrust-analyzer cargo serde_core 1.0.228 ser/Serializer#serialize_str().(s), |
| 18 | Valuerust-analyzer cargo ron 0.12.0 value/Value#::Bytesrust-analyzer cargo ron 0.12.0 value/Value#Bytes#(ref b) => serializer.serialize_bytesrust-analyzer cargo serde_core 1.0.228 ser/Serializer#serialize_bytes().(b), |
| 19 | Valuerust-analyzer cargo ron 0.12.0 value/Value#::Seqrust-analyzer cargo ron 0.12.0 value/Value#Seq#(ref s) => Serializerust-analyzer cargo serde_core 1.0.228 ser/Serialize#::serializerust-analyzer cargo serde_core 1.0.228 ser/impls/impl#[`Vec<T>`][Serialize]serialize().(s, serializer), |
| 20 | Valuerust-analyzer cargo ron 0.12.0 value/Value#::Unitrust-analyzer cargo ron 0.12.0 value/Value#Unit# => serializer.serialize_unitrust-analyzer cargo serde_core 1.0.228 ser/Serializer#serialize_unit().(), |
| 21 | } |
| 22 | } |
| 23 | } |