[Rust] Documentation for Reader::get_slice points at align_to, which doesn't seem to exist
Opened this issue · 0 comments
mstange commented
Hi all,
I'm trying to understand how to get array data out of a Flexbuffer in Rust without copies. There is a deprecated get_slice
method: https://docs.rs/flexbuffers/2.0.0/flexbuffers/struct.Reader.html#method.get_slice
However, this method is deprecated, with the annotation "đź‘ŽDeprecated since 0.3.0: This function is unsafe - if this functionality is needed use Reader::buffer::align_to"
What is this referring to? Searchingalign_to
in the docs doesn't turn up anything: https://docs.rs/flexbuffers/2.0.0/flexbuffers/struct.Reader.html?search=align_to