Lines Matching refs:Compound
65 type SerializeSeq = Compound<'a, W, F>;
66 type SerializeTuple = Compound<'a, W, F>;
67 type SerializeTupleStruct = Compound<'a, W, F>;
68 type SerializeTupleVariant = Compound<'a, W, F>;
69 type SerializeMap = Compound<'a, W, F>;
70 type SerializeStruct = Compound<'a, W, F>;
71 type SerializeStructVariant = Compound<'a, W, F>;
328 Ok(Compound::Map { in serialize_seq()
337 Ok(Compound::Map { in serialize_seq()
397 Ok(Compound::Map { in serialize_map()
406 Ok(Compound::Map { in serialize_map()
417 crate::number::TOKEN => Ok(Compound::Number { ser: self }), in serialize_struct()
419 crate::raw::TOKEN => Ok(Compound::RawValue { ser: self }), in serialize_struct()
517 pub enum Compound<'a, W: 'a, F: 'a> { enum
528 impl<'a, W, F> ser::SerializeSeq for Compound<'a, W, F> implementation
542 Compound::Map { in serialize_element()
559 Compound::Number { .. } => unreachable!(), in serialize_element()
561 Compound::RawValue { .. } => unreachable!(), in serialize_element()
568 Compound::Map { ser, state } => { in end()
576 Compound::Number { .. } => unreachable!(), in end()
578 Compound::RawValue { .. } => unreachable!(), in end()
583 impl<'a, W, F> ser::SerializeTuple for Compound<'a, W, F> implementation
605 impl<'a, W, F> ser::SerializeTupleStruct for Compound<'a, W, F> implementation
627 impl<'a, W, F> ser::SerializeTupleVariant for Compound<'a, W, F> implementation
646 Compound::Map { ser, state } => { in end()
659 Compound::Number { .. } => unreachable!(), in end()
661 Compound::RawValue { .. } => unreachable!(), in end()
666 impl<'a, W, F> ser::SerializeMap for Compound<'a, W, F> implementation
680 Compound::Map { in serialize_key()
699 Compound::Number { .. } => unreachable!(), in serialize_key()
701 Compound::RawValue { .. } => unreachable!(), in serialize_key()
711 Compound::Map { ref mut ser, .. } => { in serialize_value()
724 Compound::Number { .. } => unreachable!(), in serialize_value()
726 Compound::RawValue { .. } => unreachable!(), in serialize_value()
733 Compound::Map { ser, state } => { in end()
741 Compound::Number { .. } => unreachable!(), in end()
743 Compound::RawValue { .. } => unreachable!(), in end()
748 impl<'a, W, F> ser::SerializeStruct for Compound<'a, W, F> implementation
762 Compound::Map { .. } => ser::SerializeMap::serialize_entry(self, key, value), in serialize_field()
764 Compound::Number { ref mut ser, .. } => { in serialize_field()
773 Compound::RawValue { ref mut ser, .. } => { in serialize_field()
787 Compound::Map { .. } => ser::SerializeMap::end(self), in end()
789 Compound::Number { .. } => Ok(()), in end()
791 Compound::RawValue { .. } => Ok(()), in end()
796 impl<'a, W, F> ser::SerializeStructVariant for Compound<'a, W, F> implementation
810 Compound::Map { .. } => ser::SerializeStruct::serialize_field(self, key, value), in serialize_field()
812 Compound::Number { .. } => unreachable!(), in serialize_field()
814 Compound::RawValue { .. } => unreachable!(), in serialize_field()
821 Compound::Map { ser, state } => { in end()
834 Compound::Number { .. } => unreachable!(), in end()
836 Compound::RawValue { .. } => unreachable!(), in end()