Trait starlark::values::StringValueLike
source · 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§
sourcefn to_string_value(self) -> StringValue<'v>
fn to_string_value(self) -> StringValue<'v>
Convert to a StringValue
.
Provided Methods§
Object Safety§
This trait is not object safe.