[Rust] Restore public visibility of previously-public fields (#7700)

* Restore public visibility of previously-public fields

* code review feedback
This commit is contained in:
Max Burke
2022-12-08 15:20:14 -08:00
committed by GitHub
parent acf39ff056
commit 3be296ec8a

View File

@@ -25,6 +25,16 @@ pub struct Table<'a> {
}
impl<'a> Table<'a> {
#[inline]
pub fn buf(&self) -> &'a [u8] {
self.buf
}
#[inline]
pub fn loc(&self) -> usize {
self.loc
}
/// # Safety
///
/// `buf` must contain a `soffset_t` at `loc`, which points to a valid vtable