Struct planus_buffer_inspection::UnionObject
source · 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 copy 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
type Declaration = Union
const KIND: &'static str = "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<UnionObject> for UnionObject
impl PartialEq<UnionObject> for UnionObject
source§fn eq(&self, other: &UnionObject) -> bool
fn eq(&self, other: &UnionObject) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for UnionObject
impl Eq for UnionObject
impl StructuralEq for UnionObject
impl StructuralPartialEq for UnionObject
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.