pub type Result<T, E = Error> = Result<T, E>;Expand description
Global result alias for nextjson.
The error type defaults to Error so existing code can keep writing
Result<T>. Format codecs that carry their own error type use the second
parameter (Result<T, CodecError>).
Aliased Type§
pub enum Result<T, E = Error> {
Ok(T),
Err(E),
}