MCPcopy Create free account
hub / github.com/RustCrypto/utils / zip

Function zip

ctutils/src/ct_option.rs:901–906  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

899
900 #[test]
901 fn zip() {
902 assert!(NONE.zip(NONE).is_none().to_bool());
903 assert!(NONE.zip(SOME).is_none().to_bool());
904 assert!(SOME.zip(NONE).is_none().to_bool());
905 assert_eq!(SOME.zip(OTHER).unwrap(), (SOME.unwrap(), OTHER.unwrap()));
906 }
907
908 #[test]
909 fn zip_with() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected