MCPcopy Create free account
hub / github.com/elastic/devfiler / new

Method new

src/storage/table.rs:371–376  ·  view source on GitHub ↗

Create a new table value reference.

(data: S)

Source from the content-addressed store, hash-verified

369impl<T: rkyv::Archive, S: AsRef<[u8]>> TableValueRef<T, S> {
370 /// Create a new table value reference.
371 fn new(data: S) -> Self {
372 Self {
373 data,
374 _marker: PhantomData,
375 }
376 }
377
378 /// Borrowed access to the data (no copy, cheap).
379 pub fn get(&self) -> &T::Archived {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected