Struct re_types_builder::FbsSchema
source · 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<'a> PartialEq for Schema<'a>
impl<'a> PartialEq for Schema<'a>
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: 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
)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
)§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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
.§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
.§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.§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.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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