MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / visit_map

Method visit_map

src/serde/de.rs:657–665  ·  view source on GitHub ↗
(self, mut map: A)

Source from the content-addressed store, hash-verified

655 unreachable!()
656 }
657 fn visit_map<A>(self, mut map: A) -> Result<Self::Value, A::Error>
658 where
659 A: MapAccess<'de>,
660 {
661 assert_eq!(map.next_key::<u8>().unwrap().unwrap(), 1u8);
662 assert_eq!(map.next_value::<u8>().unwrap(), 2u8);
663 map.next_value::<u8>().unwrap();
664 Ok(())
665 }
666 }
667 w.deserialize_map(Visitor).unwrap();
668 }

Callers 1

deserialize_mapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected