serialize

Function serialize 

Source
pub fn serialize<S>(b: &bool, ser: S) -> Result<S::Ok, S::Error>
where S: Serializer,
Expand description

Convert a boolean flag to an integer. returns 0 if false and 1 if true