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

Method as_ref

arrow-buffer/src/buffer/scalar.rs:173–175  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

171impl<T: ArrowNativeType> AsRef<[T]> for ScalarBuffer<T> {
172 #[inline]
173 fn as_ref(&self) -> &[T] {
174 self
175 }
176}
177
178impl<T: ArrowNativeType> From<MutableBuffer> for ScalarBuffer<T> {

Callers 14

criterion_benchmarkFunction · 0.45
test_from_bytesFunction · 0.45
fmtMethod · 0.45
into_iterMethod · 0.45
eqMethod · 0.45
from_bitwise_unary_opMethod · 0.45
derefMethod · 0.45
finish_clonedMethod · 0.45
as_sliceMethod · 0.45
allocated_sizeMethod · 0.45
lenMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_from_bytesFunction · 0.36