MCPcopy Create free account
hub / github.com/apache/arrow-rs / write

Method write

arrow-cast/src/display.rs:420–426  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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> {

Callers 4

try_to_stringMethod · 0.45
fmtMethod · 0.45
value_to_stringFunction · 0.45
value_to_string_viewFunction · 0.45

Calls 15

write_listFunction · 0.85
write_strMethod · 0.80
is_zeroMethod · 0.80
as_usizeMethod · 0.80
value_sizesMethod · 0.80
type_idMethod · 0.80
is_nullMethod · 0.45
is_emptyMethod · 0.45
valueMethod · 0.45
valuesMethod · 0.45
keysMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected