Expand description
§use-python-value
Python-like primitive value metadata for RustUse.
§Experimental
use-python-value is experimental while use-python remains below 0.3.0.
§Example
use use_python_value::PythonPrimitiveValue;
let value = PythonPrimitiveValue::Int(String::from("12345678901234567890"));
assert_eq!(value.type_name(), "int");
assert!(value.is_numeric());
assert!(value.is_truthy_like());§Scope
- Primitive Python-like value metadata.
- Truthy-like and numeric classification helpers.
- Text storage for large integer literals without arbitrary-precision dependencies.
§Non-goals
- Full Python object semantics.
- Arbitrary-precision math.
- Evaluating Python literals or source code.
§License
Licensed under either Apache-2.0 or MIT.
Structs§
- Python
Bytes Value - Python bytes value metadata.
- Python
Ellipsis - Python ellipsis metadata marker.
- Python
None - Python
Nonemetadata marker.
Enums§
- Python
Number Value - Primitive Python number value metadata.
- Python
Primitive Value - Primitive Python-like values for metadata and validation helpers.
- Python
String Kind - Python string literal kind metadata.
- Python
Value Parse Error - Error returned when Python value metadata labels are invalid.