mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +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:
parent
acf39ff056
commit
3be296ec8a
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue