Type Definition liquid_core::model::KStringCow
source · [−]pub type KStringCow<'s> = KStringCowBase<'s, Box<str, Global>>;
Expand description
A reference to a UTF-8 encoded, immutable string.
Trait Implementations
sourceimpl<'s> ObjectIndex for KStringCow<'s>
impl<'s> ObjectIndex for KStringCow<'s>
sourceimpl<'s> ValueView for KStringCow<'s>
impl<'s> ValueView for KStringCow<'s>
sourcefn render(&self) -> DisplayCow<'_>
fn render(&self) -> DisplayCow<'_>
A Display
for a BoxedValue
rendered for the user.
sourcefn source(&self) -> DisplayCow<'_>
fn source(&self) -> DisplayCow<'_>
A Display
for a Value
as source code.
sourcefn query_state(&self, state: State) -> bool
fn query_state(&self, state: State) -> bool
Query the value’s state
sourcefn to_kstr(&self) -> KStringCow<'_>
fn to_kstr(&self) -> KStringCow<'_>
Interpret as a string.
sourcefn as_object(&self) -> Option<&dyn ObjectView>
fn as_object(&self) -> Option<&dyn ObjectView>
Extracts the object value if it is a object.