pub struct Utf8View<'a> {
pub _tab: Table<'a>,
}
Expand description
Logically the same as Utf8, but the internal representation uses a view struct that contains the string length and either the string’s entire data inline (for small strings) or an inlined prefix, an index of another buffer, and an offset pointing to a slice in that buffer (for non-small strings).
Since it uses a variable number of data buffers, each Field with this type
must have a corresponding entry in variadicBufferCounts
.
Fields§
§_tab: Table<'a>
Implementations§
source§impl<'a> Utf8View<'a>
impl<'a> Utf8View<'a>
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>, _args: &'args Utf8ViewArgs, ) -> WIPOffset<Utf8View<'bldr>>
Trait Implementations§
source§impl<'a> PartialEq for Utf8View<'a>
impl<'a> PartialEq for Utf8View<'a>
source§impl Verifiable for Utf8View<'_>
impl Verifiable for Utf8View<'_>
source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos
in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for Utf8View<'a>
impl<'a> StructuralPartialEq for Utf8View<'a>
Auto Trait Implementations§
impl<'a> Freeze for Utf8View<'a>
impl<'a> RefUnwindSafe for Utf8View<'a>
impl<'a> Send for Utf8View<'a>
impl<'a> Sync for Utf8View<'a>
impl<'a> Unpin for Utf8View<'a>
impl<'a> UnwindSafe for Utf8View<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)