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

Method from

arrow-buffer/src/buffer/immutable.rs:473–475  ·  view source on GitHub ↗
(p: &[u8])

Source from the content-addressed store, hash-verified

471/// See <https://github.com/apache/arrow-rs/issues/6033> for more discussion on this.
472impl From<&[u8]> for Buffer {
473 fn from(p: &[u8]) -> Self {
474 Self::from_slice_ref(p)
475 }
476}
477
478impl<const N: usize> From<[u8; N]> for Buffer {

Callers

nothing calls this directly

Calls 5

into_innerMethod · 0.45
lenMethod · 0.45
as_ptrMethod · 0.45
into_bufferMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected