pub fn decode(notation: &str) -> Result<LinoValue, CodecError>Expand description
Decode Links Notation format to a value.
This is a convenience function that uses a thread-local codec instance.
§Arguments
notation- String in Links Notation format
§Returns
The reconstructed value, or an error
§Example
use lino_objects_codec::{encode, decode, LinoValue};
let original = LinoValue::Int(42);
let encoded = encode(&original);
let decoded = decode(&encoded).unwrap();
assert_eq!(decoded, original);