pub struct StructObject {
pub offset: ByteIndex,
pub declaration: DeclarationIndex,
}
Fields§
§offset: ByteIndex
§declaration: DeclarationIndex
Implementations§
Source§impl StructObject
impl StructObject
pub fn get_field_info<'a>( &self, buffer: &InspectableFlatbuffer<'a>, field_index: usize, ) -> Option<(&'a str, &'a StructField)>
pub fn get_field<'a>( &self, buffer: &InspectableFlatbuffer<'a>, field_index: usize, ) -> Result<Object<'a>, Error>
Trait Implementations§
Source§impl Byterange for StructObject
impl Byterange for StructObject
Source§impl<'a> Children<'a> for StructObject
impl<'a> Children<'a> for StructObject
Source§impl Clone for StructObject
impl Clone for StructObject
Source§fn clone(&self) -> StructObject
fn clone(&self) -> StructObject
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StructObject
impl Debug for StructObject
Source§impl DeclarationInfo for StructObject
impl DeclarationInfo for StructObject
const KIND: &'static str = "struct"
type Declaration = Struct
fn declaration_index(&self) -> DeclarationIndex
fn resolve_declaration<'a>( &self, buffer: &InspectableFlatbuffer<'a>, ) -> &'a Struct
fn resolve_path<'a>( &self, buffer: &InspectableFlatbuffer<'a>, ) -> &'a AbsolutePath
Source§impl Hash for StructObject
impl Hash for StructObject
Source§impl<'a> ObjectName<'a> for StructObject
impl<'a> ObjectName<'a> for StructObject
fn print_object(&self, buffer: &InspectableFlatbuffer<'_>) -> String
Source§impl PartialEq for StructObject
impl PartialEq for StructObject
impl Copy for StructObject
impl Eq for StructObject
impl StructuralPartialEq for StructObject
Auto Trait Implementations§
impl Freeze for StructObject
impl RefUnwindSafe for StructObject
impl Send for StructObject
impl Sync for StructObject
impl Unpin for StructObject
impl UnwindSafe for StructObject
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.