Struct planus_buffer_inspection::UnionTagObject
source · 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 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 UnionTagObject
impl Debug for UnionTagObject
source§impl DeclarationInfo for UnionTagObject
impl DeclarationInfo for UnionTagObject
type Declaration = Union
const KIND: &'static str = "union_key"
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<UnionTagObject> for UnionTagObject
impl PartialEq<UnionTagObject> for UnionTagObject
source§fn eq(&self, other: &UnionTagObject) -> bool
fn eq(&self, other: &UnionTagObject) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for UnionTagObject
impl Eq for UnionTagObject
impl StructuralEq for UnionTagObject
impl StructuralPartialEq for UnionTagObject
Auto Trait Implementations§
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<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.