pub fn new(data: &'a str) -> Self {
        Self {
            data: Cow::Borrowed(data),
            reference_id: NEXT_STRING_REFERENCE_ID.fetch_add(1, Ordering::SeqCst),
        }
    }
/// Construct a StringReference with non-owned data.
Construct a StringReference with non-owned data.
Construct a StringReference with non - owned data .
pub fn new(data: &'a str) -> Self {
        Self {
            data: Cow::Borrowed(data),
            reference_id: NEXT_STRING_REFERENCE_ID.fetch_add(1, Ordering::SeqCst),
        }
    }
pub fn new ( data : & ' a str ) -> Self { Self { data : Cow :: Borrowed ( data ) , reference_id : NEXT_STRING_REFERENCE_ID . fetch_add ( 1 , Ordering :: SeqCst ) , } }
Construct a StringReference with non-owned data.
Construct a StringReference with non - owned data .
data
&'a str
data
&'a str