pub fn serialize_atomic_bool<S>(
    value: &AtomicBool,
    serializer: S
) -> Result<S::Ok, S::Error> where
    S: Serializer