pub fn ser_as_blocks_opt<S>( blocks: &Option<AsBlocks>, s: S ) -> Result<S::Ok, S::Error>where S: Serializer,