symforce.codegen.backends.rust.rust_code_printer module¶
- class ScalarType(value)[source]¶
Bases:
Enum
An enumeration.
- FLOAT = FloatType(String('float32'), nbits=Integer(32), nmant=Integer(23), nexp=Integer(8))¶
- DOUBLE = FloatType(String('float64'), nbits=Integer(64), nmant=Integer(52), nexp=Integer(11))¶
- class RustCodePrinter(scalar_type, settings=None, override_methods=None)[source]¶
Bases:
RustCodePrinter
SymForce code printer for Rust. Based on the SymPy Rust printer.