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

Method from_string

crates/data-structures/src/slim_slice.rs:705–707  ·  view source on GitHub ↗
(str: String)

Source from the content-addressed store, hash-verified

703 /// Panics when `str.len() > u32::MAX`.
704 #[inline]
705 pub fn from_string(str: String) -> Self {
706 Self::from_boxed(str.into())
707 }
708
709 /// Returns a limited shared string slice to this boxed string slice.
710 #[allow(clippy::needless_lifetimes)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected