Closed austinjones closed 1 year ago
If the aerospike client implemented TryFrom, it would be much easier to unpack Values. It would be much easier to write this:
let field: i64 = value.try_into()?
Rather than this:
let field: i64 = match value { Value::Int(v) => Ok(v), _ => Err(CustomError::InvalidType) }?;
Released in v1.3.0.
If the aerospike client implemented TryFrom, it would be much easier to unpack Values. It would be much easier to write this:
Rather than this: