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

Method to_rust_snake

compiler/fory_compiler/generators/rust.py:163–165  ·  view source on GitHub ↗

Convert an IDL name to a sanitized Rust snake_case identifier.

(self, source: str)

Source from the content-addressed store, hash-verified

161 return normalized
162
163 def to_rust_snake(self, source: str) -> str:
164 """Convert an IDL name to a sanitized Rust snake_case identifier."""
165 return self.sanitize_identifier(self.to_snake_case(source))
166
167 def get_top_level_module_identifier(self, package: Optional[str]) -> str:
168 """Get the Rust module identifier used to reference one schema file."""

Calls 2

sanitize_identifierMethod · 0.95
to_snake_caseMethod · 0.80

Tested by

no test coverage detected