Skip to main content

python_value_basic_usage/
basic_usage.rs

1use use_python_value::PythonPrimitiveValue;
2
3fn main() {
4    let value = PythonPrimitiveValue::Int(String::from("12345678901234567890"));
5
6    assert_eq!(value.type_name(), "int");
7    assert!(value.is_numeric());
8    assert!(value.is_truthy_like());
9}