fn new_owned(data: String) -> Self {
        Self {
            data: Cow::Owned(data),
            reference_id: NEXT_STRING_REFERENCE_ID.fetch_add(1, Ordering::SeqCst),
        }
    }
/// Construct a StringReference with owned data. For internal use. To construct
/// an owning StringReference with the public API, use from(String).
Construct a StringReference with owned data. For internal use. To construct
an owning StringReference with the public API, use from(String).
Construct a StringReference with owned data . For internal use . To construct an owning StringReference with the public API use from ( String ) .
fn new_owned(data: String) -> Self {
        Self {
            data: Cow::Owned(data),
            reference_id: NEXT_STRING_REFERENCE_ID.fetch_add(1, Ordering::SeqCst),
        }
    }
fn new_owned ( data : String ) -> Self { Self { data : Cow :: Owned ( data ) , reference_id : NEXT_STRING_REFERENCE_ID . fetch_add ( 1 , Ordering :: SeqCst ) , } }
Construct a StringReference with owned data.
Construct a StringReference with owned data .
data
String
data
String