Skip to main content

interpolate

Function interpolate 

Source
pub fn interpolate(value: &Value) -> Result<Text, DataError>
Expand description

Returns what interpolating value inserts: a Text value’s own code points, a Bytes, Duration or Instant value’s text unquoted, and any other data value’s text form.

§Errors

DataError::NotData on reaching a value that is not data.

§Panics

As text_form does.