MCPcopy Create free account
hub / github.com/apache/fory / encode

Method encode

rust/fory-core/src/meta/meta_string.rs:194–200  ·  view source on GitHub ↗
(&self, input: &str)

Source from the content-addressed store, hash-verified

192 }
193
194 pub fn encode(&self, input: &str) -> Result<MetaString, Error> {
195 if let Some(ms) = self._encode(input)? {
196 return Ok(ms);
197 }
198 let encoding = self.compute_encoding(input, None);
199 self.encode_with_encoding(input, encoding)
200 }
201
202 pub fn encode_with_encodings(
203 &self,

Callers

nothing calls this directly

Calls 3

_encodeMethod · 0.80
compute_encodingMethod · 0.45
encode_with_encodingMethod · 0.45

Tested by

no test coverage detected