Module sj::version_info
source · Expand description
0.27.1
(February 9th, 2023)
Changes
Json
: in last version, shortcuts for Null
required to use Error
. Now they all
allow you to use any Error
you want:
ⓘ
pub fn map<T, E>(self) -> Result<Option<T>, E>
where
T: TryFrom<Self, Error=E>;
pub fn map_ref<'a, T, E>(&'a self) -> Result<Option<T>, E>
where
T: TryFrom<&'a Self, Error=E>;
pub fn map_or<T, E>(self, default: T) -> Result<T, E>
where
T: TryFrom<Self, Error=E>;
pub fn map_or_else<T, E, F>(self, default: F) -> Result<T, E>
where
T: TryFrom<Self, Error=E>,
F: FnOnce() -> T;
pub fn map_ref_or<'a, T, E>(&'a self, default: T) -> Result<T, E>
where
T: TryFrom<&'a Self, Error=E>;
pub fn map_ref_or_else<'a, T, E, F>(&'a self, default: F) -> Result<T, E>
where
T: TryFrom<&'a Self, Error=E>,
F: FnOnce() -> T;
Dependencies
No dependencies.