MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / str_try_into

Function str_try_into

crates/data-structures/src/slim_slice.rs:1728–1733  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1726
1727 #[test]
1728 fn str_try_into() {
1729 let [s1, s2] = test_strings();
1730 let s1: &SlimStr = &mut s1.deref().try_into().unwrap();
1731 let s2: &SlimStr = &mut s2.deref().try_into().unwrap();
1732 assert_str_properties(s1, s2);
1733 }
1734
1735 #[test]
1736 fn str_shared_ref_various() {

Callers

nothing calls this directly

Calls 5

test_stringsFunction · 0.85
assert_str_propertiesFunction · 0.85
try_intoMethod · 0.80
unwrapMethod · 0.45
derefMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…