Home
last modified time | relevance | path

Searched refs:serialize_unit_variant (Results 1 – 12 of 12) sorted by relevance

/third_party/rust/crates/log/src/
Dserde.rs23 Level::Error => serializer.serialize_unit_variant("Level", 0, "ERROR"), in serialize()
24 Level::Warn => serializer.serialize_unit_variant("Level", 1, "WARN"), in serialize()
25 Level::Info => serializer.serialize_unit_variant("Level", 2, "INFO"), in serialize()
26 Level::Debug => serializer.serialize_unit_variant("Level", 3, "DEBUG"), in serialize()
27 Level::Trace => serializer.serialize_unit_variant("Level", 4, "TRACE"), in serialize()
117 LevelFilter::Off => serializer.serialize_unit_variant("LevelFilter", 0, "OFF"), in serialize()
118 LevelFilter::Error => serializer.serialize_unit_variant("LevelFilter", 1, "ERROR"), in serialize()
119 LevelFilter::Warn => serializer.serialize_unit_variant("LevelFilter", 2, "WARN"), in serialize()
120 LevelFilter::Info => serializer.serialize_unit_variant("LevelFilter", 3, "INFO"), in serialize()
121 LevelFilter::Debug => serializer.serialize_unit_variant("LevelFilter", 4, "DEBUG"), in serialize()
[all …]
/third_party/rust/crates/serde/test_suite/tests/expand/
Dser_enum.expanded.rs34 SerEnum::Unit => _serde::Serializer::serialize_unit_variant( in serialize()
151 SerEnum::_Unit2 => _serde::Serializer::serialize_unit_variant( in serialize()
Dgeneric_enum.expanded.rs27 GenericEnum::Unit => _serde::Serializer::serialize_unit_variant( in serialize()
Dde_enum.expanded.rs31 _serde::Serializer::serialize_unit_variant(__serializer, "DeEnum", 0u32, "Unit") in serialize()
144 DeEnum::_Unit2 => _serde::Serializer::serialize_unit_variant( in serialize()
/third_party/rust/crates/serde/serde/src/private/
Ddoc.rs123 __serialize_unimplemented_method!(serialize_unit_variant(&str, u32, &str) -> Ok);
Dser.rs196 fn serialize_unit_variant( in serialize_unit_variant() function
495 Content::UnitVariant(n, i, v) => serializer.serialize_unit_variant(n, i, v), in serialize()
653 fn serialize_unit_variant( in serialize_unit_variant() function
1106 fn serialize_unit_variant( in serialize_unit_variant() function
/third_party/rust/crates/serde/serde/src/ser/
Dfmt.rs72 fn serialize_unit_variant( in serialize_unit_variant() method
Dmod.rs871 fn serialize_unit_variant( in serialize_unit_variant() method
Dimpls.rs271 Bound::Unbounded => serializer.serialize_unit_variant("Bound", 0, "Unbounded"), in serialize()
/third_party/rust/crates/serde/serde_test/src/
Dconfigure.rs223 fn serialize_unit_variant(
229 self.0.serialize_unit_variant(name, variant_index, variant)
Dser.rs178 fn serialize_unit_variant( in serialize_unit_variant() method
/third_party/rust/crates/serde/serde_derive/src/
Dser.rs522 _serde::Serializer::serialize_unit_variant( in serialize_externally_tagged_variant()