Skip to main content

ObjectMapping

Struct ObjectMapping 

Source
pub struct ObjectMapping<'a> {
    pub root_object: Object<'a>,
    pub root_objects: IndexMap<Object<'a>, (ByteIndex, ByteIndex)>,
    pub root_intervals: Lapper<ByteIndex, ObjectIndex>,
}

Fields§

§root_object: Object<'a>§root_objects: IndexMap<Object<'a>, (ByteIndex, ByteIndex)>§root_intervals: Lapper<ByteIndex, ObjectIndex>

Implementations§

Source§

impl<'a> ObjectMapping<'a>

Source

pub fn get_interpretations( &self, byte_index: ByteIndex, buffer: &InspectableFlatbuffer<'a>, ) -> Vec<Interpretation>

Source

pub fn get_interpretations_cb( &self, byte_index: ByteIndex, buffer: &InspectableFlatbuffer<'a>, callback: impl FnMut(Interpretation), )

Source

pub fn line_tree( &self, root_object_index: ObjectIndex, buffer: &InspectableFlatbuffer<'a>, ) -> LineTree<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for ObjectMapping<'a>

§

impl<'a> RefUnwindSafe for ObjectMapping<'a>

§

impl<'a> Send for ObjectMapping<'a>

§

impl<'a> Sync for ObjectMapping<'a>

§

impl<'a> Unpin for ObjectMapping<'a>

§

impl<'a> UnwindSafe for ObjectMapping<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.