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

Method to_usize

arrow-buffer/src/native.rs:196–202  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194 }
195
196 fn to_usize(self) -> Option<usize> {
197 let (low, high) = self.to_parts();
198 if high != 0 {
199 return None;
200 }
201 low.try_into().ok()
202 }
203
204 fn to_isize(self) -> Option<isize> {
205 self.to_i128()?.try_into().ok()

Callers 15

encodeMethod · 0.80
view_from_dict_valuesFunction · 0.80
generate_listFunction · 0.80
take_fixed_size_listFunction · 0.80
compare_fixed_listFunction · 0.80
appendMethod · 0.80
try_newMethod · 0.80
new_nullMethod · 0.80
fromMethod · 0.80
value_uncheckedMethod · 0.80

Calls 1

to_partsMethod · 0.45

Tested by

no test coverage detected