Struct planus_buffer_inspection::EnumObject
source · pub struct EnumObject {
pub offset: ByteIndex,
pub declaration: DeclarationIndex,
}Fields§
§offset: ByteIndex§declaration: DeclarationIndexImplementations§
source§impl EnumObject
impl EnumObject
pub fn tag( &self, buffer: &InspectableFlatbuffer<'_> ) -> Result<IntegerObject, Error>
pub fn read(&self, buffer: &InspectableFlatbuffer<'_>) -> Result<u64, Error>
Trait Implementations§
source§impl Byterange for EnumObject
impl Byterange for EnumObject
source§impl<'a> Children<'a> for EnumObject
impl<'a> Children<'a> for EnumObject
source§impl Clone for EnumObject
impl Clone for EnumObject
source§fn clone(&self) -> EnumObject
fn clone(&self) -> EnumObject
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 EnumObject
impl Debug for EnumObject
source§impl DeclarationInfo for EnumObject
impl DeclarationInfo for EnumObject
type Declaration = Enum
const KIND: &'static str = "enum"
fn declaration_index(&self) -> DeclarationIndex
fn resolve_declaration<'a>( &self, buffer: &InspectableFlatbuffer<'a> ) -> &'a Enum
fn resolve_path<'a>( &self, buffer: &InspectableFlatbuffer<'a> ) -> &'a AbsolutePath
source§impl Hash for EnumObject
impl Hash for EnumObject
source§impl<'a> ObjectName<'a> for EnumObject
impl<'a> ObjectName<'a> for EnumObject
fn print_object(&self, buffer: &InspectableFlatbuffer<'a>) -> String
source§impl PartialEq<EnumObject> for EnumObject
impl PartialEq<EnumObject> for EnumObject
source§fn eq(&self, other: &EnumObject) -> bool
fn eq(&self, other: &EnumObject) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for EnumObject
impl Eq for EnumObject
impl StructuralEq for EnumObject
impl StructuralPartialEq for EnumObject
Auto Trait Implementations§
impl RefUnwindSafe for EnumObject
impl Send for EnumObject
impl Sync for EnumObject
impl Unpin for EnumObject
impl UnwindSafe for EnumObject
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.