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