pub struct Type<'a> {
pub _tab: Table<'a>,
}
Fields§
§_tab: Table<'a>
Implementations§
Source§impl<'a> Type<'a>
impl<'a> Type<'a>
pub const VT_BASE_TYPE: VOffsetT = 4u16
pub const VT_ELEMENT: VOffsetT = 6u16
pub const VT_INDEX: VOffsetT = 8u16
pub const VT_FIXED_LENGTH: VOffsetT = 10u16
pub const VT_BASE_SIZE: VOffsetT = 12u16
pub const VT_ELEMENT_SIZE: VOffsetT = 14u16
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args TypeArgs, ) -> WIPOffset<Type<'bldr>>
pub fn base_type(&self) -> BaseType
pub fn element(&self) -> BaseType
pub fn index(&self) -> i32
pub fn fixed_length(&self) -> u16
Sourcepub fn element_size(&self) -> u32
pub fn element_size(&self) -> u32
The size (octets) of the element
field, if present.
Trait Implementations§
Source§impl Verifiable for Type<'_>
impl Verifiable for Type<'_>
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 Type<'a>
impl<'a> StructuralPartialEq for Type<'a>
Auto Trait Implementations§
impl<'a> Freeze for Type<'a>
impl<'a> RefUnwindSafe for Type<'a>
impl<'a> Send for Type<'a>
impl<'a> Sync for Type<'a>
impl<'a> Unpin for Type<'a>
impl<'a> UnwindSafe for Type<'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