MCPcopy Create free account
hub / github.com/adam-mcdaniel/atom / string

Method string

src/value.rs:104–106  ·  view source on GitHub ↗
(s: impl ToString)

Source from the content-addressed store, hash-verified

102 }
103
104 pub fn string(s: impl ToString) -> Self {
105 Self::String(s.to_string())
106 }
107
108 pub fn builtin(name: impl ToString, body: fn(&Vec<Value>, &mut Environment) -> Result<Value, Error>) -> Self {
109 Self::Builtin(name.to_string(), body)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected