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

Function insert

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

Source from the content-addressed store, hash-verified

799
800 #[test]
801 fn insert() {
802 let mut example = NONE;
803 assert!(example.is_none().to_bool());
804
805 let ret = example.insert(42);
806 assert_eq!(ret, &42);
807 assert!(example.is_some().to_bool());
808 }
809
810 #[test]
811 fn insert_if() {

Callers

nothing calls this directly

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected