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

Function err

arrow-json/src/reader/tape.rs:702–707  ·  view source on GitHub ↗

Returns an error for a given byte `b` and context `ctx`

(b: u8, ctx: &str)

Source from the content-addressed store, hash-verified

700
701/// Returns an error for a given byte `b` and context `ctx`
702fn err(b: u8, ctx: &str) -> ArrowError {
703 ArrowError::JsonError(format!(
704 "Encountered unexpected '{}' whilst {ctx}",
705 b as char
706 ))
707}
708
709/// Creates a character from an UTF-16 surrogate pair
710fn char_from_surrogate_pair(low: u16, high: u16) -> Result<char, ArrowError> {

Callers 4

string_to_datetimeFunction · 0.85
timestamp_to_date32Function · 0.85
decodeMethod · 0.85
parse_hexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected