Skip to main content

to_string

Function to_string 

Source
pub fn to_string<T>(value: &T) -> Result<String>
where T: ?Sized + Serialize,
Expand description

Serialize the given value into a libconfig string.

ยงErrors

Returns an error if the value cannot be represented in libconfig (e.g. non-finite floats, u64 values beyond i64::MAX, invalid setting names, or a bare None).