pub struct ViewContext<'lb> { /* private fields */ }Expand description
Contextual information about the current state of decompilation. Contains data used to translate between instructions and views.
Implementations§
Source§impl<'lb> ViewContext<'lb>
impl<'lb> ViewContext<'lb>
Sourcepub fn new(chunk: &'lb LuaChunk) -> ViewContext<'_>
pub fn new(chunk: &'lb LuaChunk) -> ViewContext<'_>
Create and initialize a ViewContext by decoding some initial data from the given chunk.
pub fn decompile(&mut self)
pub fn chunk(&self) -> &LuaChunk
pub fn view_at(&self, index: ViewRef) -> &View
pub fn view_free_mark_at(&self, index: ViewRef) -> &ViewFreeMarkInfo
pub fn free_mark(&self) -> &FreeMark
Sourcepub fn iter_root<'a>(&'a self) -> RootViewIterator<'a> ⓘ
pub fn iter_root<'a>(&'a self) -> RootViewIterator<'a> ⓘ
Iterates through all root views from last to first
Auto Trait Implementations§
impl<'lb> !RefUnwindSafe for ViewContext<'lb>
impl<'lb> !Send for ViewContext<'lb>
impl<'lb> !Sync for ViewContext<'lb>
impl<'lb> !UnwindSafe for ViewContext<'lb>
impl<'lb> Freeze for ViewContext<'lb>
impl<'lb> Unpin for ViewContext<'lb>
impl<'lb> UnsafeUnpin for ViewContext<'lb>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more