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

Method as_slice

arrow-buffer/src/buffer/mutable.rs:513–515  ·  view source on GitHub ↗

Returns the data stored in this buffer as a slice.

(&self)

Source from the content-addressed store, hash-verified

511
512 /// Returns the data stored in this buffer as a slice.
513 pub fn as_slice(&self) -> &[u8] {
514 self
515 }
516
517 /// Returns the data stored in this buffer as a mutable slice.
518 pub fn as_slice_mut(&mut self) -> &mut [u8] {

Callers 6

eqMethod · 0.45
into_vecFunction · 0.45
fromMethod · 0.45
typed_dataMethod · 0.45
as_refMethod · 0.45
eqMethod · 0.45

Calls

no outgoing calls

Tested by 1

into_vecFunction · 0.36