pub trait StringValueLike<'v>: Trace<'v> + Freeze<Frozen = FrozenStringValue> + CoerceKey<StringValue<'v>> + Display + Debug + Default + Eq + Ord + Copy + Clone + Dupe + Serialize + Allocative + Sealed {
    // Required method
    fn to_string_value(self) -> StringValue<'v>;

    // Provided method
    fn as_str(self) -> &'v str { ... }
}
Expand description

Common type for StringValue and FrozenStringValue.

Required Methods§

source

fn to_string_value(self) -> StringValue<'v>

Convert to a StringValue.

Provided Methods§

source

fn as_str(self) -> &'v str

Convert to a str.

Object Safety§

This trait is not object safe.

Implementors§