MCPcopy Create free account
hub / github.com/cobalt-org/kstring / from

Method from

src/string.rs:228–230  ·  view source on GitHub ↗
(other: KStringRef<'s>)

Source from the content-addressed store, hash-verified

226impl<'s, B: crate::backend::HeapStr> From<KStringRef<'s>> for KStringBase<B> {
227 #[inline]
228 fn from(other: KStringRef<'s>) -> Self {
229 other.to_owned()
230 }
231}
232
233impl<'s, B: crate::backend::HeapStr> From<&'s KStringRef<'s>> for KStringBase<B> {

Callers

nothing calls this directly

Calls 3

to_ownedMethod · 0.80
into_ownedMethod · 0.80
cloneMethod · 0.80

Tested by

no test coverage detected