Home
last modified time | relevance | path

Searched refs:transparent_field (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/serde_derive/src/internals/
Dcheck.rs357 let mut transparent_field = None; in check_transparent() localVariable
361 if transparent_field.is_some() { in check_transparent()
368 transparent_field = Some(field); in check_transparent()
372 match transparent_field { in check_transparent()
373 Some(transparent_field) => transparent_field.attrs.mark_transparent(), in check_transparent()
/external/rust/crates/serde_derive/src/
Dser.rs198 let transparent_field = fields.iter().find(|f| f.attrs.transparent()).unwrap(); in serialize_transparent() localVariable
199 let member = &transparent_field.member; in serialize_transparent()
201 let path = match transparent_field.attrs.serialize_with() { in serialize_transparent()
204 let span = transparent_field.original.span(); in serialize_transparent()
Dde.rs357 let transparent_field = fields.iter().find(|f| f.attrs.transparent()).unwrap(); in deserialize_transparent() localVariable
359 let path = match transparent_field.attrs.deserialize_with() { in deserialize_transparent()
362 let span = transparent_field.original.span(); in deserialize_transparent()
369 if ptr::eq(field, transparent_field) { in deserialize_transparent()