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

Function insert

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected