pub struct UnionObject {
pub tag: u8,
pub offset: ByteIndex,
pub declaration: DeclarationIndex,
}Fields§
§tag: u8§offset: ByteIndex§declaration: DeclarationIndexImplementations§
Source§impl UnionObject
impl UnionObject
pub fn inner_offset<'a>( &self, buffer: &InspectableFlatbuffer<'a>, ) -> Result<Option<OffsetObject<'a>>, Error>
pub fn tag_variant<'a>( &self, buffer: &InspectableFlatbuffer<'a>, ) -> Result<Option<(&'a str, &'a UnionVariant)>, Error>
Trait Implementations§
Source§impl Byterange for UnionObject
impl Byterange for UnionObject
Source§impl<'a> Children<'a> for UnionObject
impl<'a> Children<'a> for UnionObject
Source§impl Clone for UnionObject
impl Clone for UnionObject
Source§fn clone(&self) -> UnionObject
fn clone(&self) -> UnionObject
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 UnionObject
impl Debug for UnionObject
Source§impl DeclarationInfo for UnionObject
impl DeclarationInfo for UnionObject
const KIND: &'static str = "union"
type Declaration = Union
fn declaration_index(&self) -> DeclarationIndex
fn resolve_declaration<'a>( &self, buffer: &InspectableFlatbuffer<'a>, ) -> &'a Union
fn resolve_path<'a>( &self, buffer: &InspectableFlatbuffer<'a>, ) -> &'a AbsolutePath
Source§impl Hash for UnionObject
impl Hash for UnionObject
Source§impl<'a> ObjectName<'a> for UnionObject
impl<'a> ObjectName<'a> for UnionObject
fn print_object(&self, buffer: &InspectableFlatbuffer<'a>) -> String
Source§impl PartialEq for UnionObject
impl PartialEq for UnionObject
impl Copy for UnionObject
impl Eq for UnionObject
impl StructuralPartialEq for UnionObject
Auto Trait Implementations§
impl Freeze for UnionObject
impl RefUnwindSafe for UnionObject
impl Send for UnionObject
impl Sync for UnionObject
impl Unpin for UnionObject
impl UnwindSafe for UnionObject
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.