MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / cast_string_to_bytes

Function cast_string_to_bytes

src/expr/src/scalar/func/impls/string.rs:76–78  ·  view source on GitHub ↗
(a: &'a str)

Source from the content-addressed store, hash-verified

74 inverse = to_unary!(super::CastBytesToString)
75)]
76fn cast_string_to_bytes<'a>(a: &'a str) -> Result<Vec<u8>, EvalError> {
77 strconv::parse_bytes(a).err_into()
78}
79
80#[sqlfunc(
81 sqlname = "text_to_smallint",

Callers

nothing calls this directly

Calls 2

err_intoMethod · 0.80
parse_bytesFunction · 0.50

Tested by

no test coverage detected