Struct BytecodeFile
pub struct BytecodeFile<C> { /* private fields */ }Expand description
A parsed bytecode file.
Implementations§
§impl<C> BytecodeFile<C>
impl<C> BytecodeFile<C>
pub fn context(&self) -> &C
pub fn context_handle(&self) -> ContextHandle<C>
pub fn root(&self) -> BytecodeSectionView<'_, C>
pub fn root(&self) -> BytecodeSectionView<'_, C>
The view of the root of the bytecode section tree.
§impl<C> BytecodeFile<C>where
C: BytecodeGlobalContext,
impl<C> BytecodeFile<C>where
C: BytecodeGlobalContext,
pub fn from_bytes(bytes: Vec<u8>) -> Result<BytecodeFile<C>, Report>
pub fn from_bytes(bytes: Vec<u8>) -> Result<BytecodeFile<C>, Report>
Parse a bytecode file from bytes.
Trait Implementations§
§impl<C> Clone for BytecodeFile<C>where
C: Clone,
impl<C> Clone for BytecodeFile<C>where
C: Clone,
§fn clone(&self) -> BytecodeFile<C>
fn clone(&self) -> BytecodeFile<C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<C> Freeze for BytecodeFile<C>
impl<C> RefUnwindSafe for BytecodeFile<C>where
C: RefUnwindSafe,
impl<C> Send for BytecodeFile<C>
impl<C> Sync for BytecodeFile<C>
impl<C> Unpin for BytecodeFile<C>
impl<C> UnsafeUnpin for BytecodeFile<C>
impl<C> UnwindSafe for BytecodeFile<C>where
C: RefUnwindSafe,
Blanket Implementations§
Source§impl<D> Apply<PushToStack<()>> for D
impl<D> Apply<PushToStack<()>> for D
Source§fn apply(&mut self, _: PushToStack<()>)
fn apply(&mut self, _: PushToStack<()>)
Apply a single effect to this destination.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§type Iter<'a> = Once<&'a T>
where
T: 'a
type Iter<'a> = Once<&'a T> where T: 'a
An iterator over the items within this container, by reference.
§fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
Check whether an item is contained within this sequence.
§fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
Convert an item of the sequence into a [
MaybeRef].