pub struct Schema<'a> {
pub _tab: Table<'a>,
}
Fields§
§_tab: Table<'a>
Implementations§
Source§impl<'a> Schema<'a>
impl<'a> Schema<'a>
pub const VT_OBJECTS: VOffsetT = 4u16
pub const VT_ENUMS: VOffsetT = 6u16
pub const VT_FILE_IDENT: VOffsetT = 8u16
pub const VT_FILE_EXT: VOffsetT = 10u16
pub const VT_ROOT_TABLE: VOffsetT = 12u16
pub const VT_SERVICES: VOffsetT = 14u16
pub const VT_ADVANCED_FEATURES: VOffsetT = 16u16
pub const VT_FBS_FILES: VOffsetT = 18u16
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 SchemaArgs<'args>, ) -> WIPOffset<Schema<'bldr>>
pub fn objects(&self) -> Vector<'a, ForwardsUOffset<Object<'a>>>
pub fn enums(&self) -> Vector<'a, ForwardsUOffset<Enum<'a>>>
pub fn file_ident(&self) -> Option<&'a str>
pub fn file_ext(&self) -> Option<&'a str>
pub fn root_table(&self) -> Option<Object<'a>>
pub fn services(&self) -> Option<Vector<'a, ForwardsUOffset<Service<'a>>>>
pub fn advanced_features(&self) -> AdvancedFeatures
Sourcepub fn fbs_files(&self) -> Option<Vector<'a, ForwardsUOffset<SchemaFile<'a>>>>
pub fn fbs_files(&self) -> Option<Vector<'a, ForwardsUOffset<SchemaFile<'a>>>>
All the files used in this compilation. Files are relative to where flatc was invoked.
Trait Implementations§
Source§impl Verifiable for Schema<'_>
impl Verifiable for Schema<'_>
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 Schema<'a>
impl<'a> StructuralPartialEq for Schema<'a>
Auto Trait Implementations§
impl<'a> Freeze for Schema<'a>
impl<'a> RefUnwindSafe for Schema<'a>
impl<'a> Send for Schema<'a>
impl<'a> Sync for Schema<'a>
impl<'a> Unpin for Schema<'a>
impl<'a> UnwindSafe for Schema<'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