pub struct FbsSchema<'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>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more