Writes this value to the provided [`Write`] Note: this ignores [`FormatOptions::with_display_error`] and will return an error on formatting issue
(&self, s: &mut dyn Write)
| 418 | /// Note: this ignores [`FormatOptions::with_display_error`] and |
| 419 | /// will return an error on formatting issue |
| 420 | pub fn write(&self, s: &mut dyn Write) -> Result<(), ArrowError> { |
| 421 | match self.formatter.format.write(self.idx, s) { |
| 422 | Ok(_) => Ok(()), |
| 423 | Err(FormatError::Arrow(e)) => Err(e), |
| 424 | Err(FormatError::Format(_)) => Err(ArrowError::CastError("Format error".to_string())), |
| 425 | } |
| 426 | } |
| 427 | |
| 428 | /// Fallibly converts this to a string |
| 429 | pub fn try_to_string(&self) -> Result<String, ArrowError> { |
no test coverage detected