mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-22 14:18:52 +00:00
[Rust] Restore public visibility of previously-public fields (#7700)
* Restore public visibility of previously-public fields * code review feedback
This commit is contained in:
@@ -25,6 +25,16 @@ pub struct Table<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Table<'a> {
|
impl<'a> Table<'a> {
|
||||||
|
#[inline]
|
||||||
|
pub fn buf(&self) -> &'a [u8] {
|
||||||
|
self.buf
|
||||||
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub fn loc(&self) -> usize {
|
||||||
|
self.loc
|
||||||
|
}
|
||||||
|
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// `buf` must contain a `soffset_t` at `loc`, which points to a valid vtable
|
/// `buf` must contain a `soffset_t` at `loc`, which points to a valid vtable
|
||||||
|
|||||||
Reference in New Issue
Block a user