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

Function zip

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected