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

Method len

arrow-buffer/src/buffer/scalar.rs:146–148  ·  view source on GitHub ↗

Returns the number of elements in the buffer

(&self)

Source from the content-addressed store, hash-verified

144
145 /// Returns the number of elements in the buffer
146 pub fn len(&self) -> usize {
147 self.buffer.len() / std::mem::size_of::<T>()
148 }
149
150 /// Returns if the buffer is empty
151 pub fn is_empty(&self) -> bool {

Callers 4

is_emptyMethod · 0.45
derefMethod · 0.45
fromMethod · 0.45
into_vecFunction · 0.45

Calls

no outgoing calls

Tested by 1

into_vecFunction · 0.36