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

Method parse

arrow-cast/src/parse.rs:447–451  ·  view source on GitHub ↗
(string: &str)

Source from the content-addressed store, hash-verified

445
446impl Parser for Float16Type {
447 fn parse(string: &str) -> Option<f16> {
448 lexical_core::parse(string.as_bytes())
449 .ok()
450 .map(f16::from_f32)
451 }
452}
453
454impl Parser for Float32Type {

Callers 11

string_to_datetimeFunction · 0.45
parse_extended_ymdFunction · 0.45
from_str_or_configMethod · 0.45
timestamp_to_date32Function · 0.45
cast_with_optionsFunction · 0.45
test_tzFunction · 0.45
cast_string_to_timestampFunction · 0.45
cast_view_to_timestampFunction · 0.45
build_timestamp_arrayFunction · 0.45

Calls 12

parse_date_to_daysFunction · 0.85
parse_dateFunction · 0.85
defaultFunction · 0.85
string_to_datetimeFunction · 0.85
parseFunction · 0.50
as_bytesMethod · 0.45
lenMethod · 0.45
into_iterMethod · 0.45
addMethod · 0.45

Tested by 2

test_tzFunction · 0.36