[−][src]Struct object::read::wasm::WasmFile
A WebAssembly object file.
Implementations
impl<'data> WasmFile<'data>
[src]
Trait Implementations
impl<'data> Debug for WasmFile<'data>
[src]
impl<'data> Default for WasmFile<'data>
[src]
impl<'data, 'file> Object<'data, 'file> for WasmFile<'data> where
'data: 'file,
[src]
'data: 'file,
type Segment = WasmSegment<'data, 'file>
A segment in the object file.
type SegmentIterator = WasmSegmentIterator<'data, 'file>
An iterator over the segments in the object file.
type Section = WasmSection<'data, 'file>
A section in the object file.
type SectionIterator = WasmSectionIterator<'data, 'file>
An iterator over the sections in the object file.
type Comdat = WasmComdat<'data, 'file>
A COMDAT section group in the object file.
type ComdatIterator = WasmComdatIterator<'data, 'file>
An iterator over the COMDAT section groups in the object file.
type Symbol = WasmSymbol<'data, 'file>
A symbol in the object file.
type SymbolIterator = WasmSymbolIterator<'data, 'file>
An iterator over symbols in the object file.
type SymbolTable = WasmSymbolTable<'data, 'file>
A symbol table in the object file.
type DynamicRelocationIterator = NoDynamicRelocationIterator
An iterator over dynamic relocations in the file. Read more
pub fn architecture(&self) -> Architecture
[src]
pub fn is_little_endian(&self) -> bool
[src]
pub fn is_64(&self) -> bool
[src]
pub fn segments(&'file self) -> Self::SegmentIterator
[src]
pub fn entry(&'file self) -> u64
[src]
pub fn section_by_name(
&'file self,
section_name: &str
) -> Option<WasmSection<'data, 'file>>
[src]
&'file self,
section_name: &str
) -> Option<WasmSection<'data, 'file>>
pub fn section_by_index(
&'file self,
index: SectionIndex
) -> Result<WasmSection<'data, 'file>>
[src]
&'file self,
index: SectionIndex
) -> Result<WasmSection<'data, 'file>>
pub fn sections(&'file self) -> Self::SectionIterator
[src]
pub fn comdats(&'file self) -> Self::ComdatIterator
[src]
pub fn symbol_by_index(
&'file self,
index: SymbolIndex
) -> Result<WasmSymbol<'data, 'file>>
[src]
&'file self,
index: SymbolIndex
) -> Result<WasmSymbol<'data, 'file>>
pub fn symbols(&'file self) -> Self::SymbolIterator
[src]
pub fn symbol_table(&'file self) -> Option<WasmSymbolTable<'data, 'file>>
[src]
pub fn dynamic_symbols(&'file self) -> Self::SymbolIterator
[src]
pub fn dynamic_symbol_table(
&'file self
) -> Option<WasmSymbolTable<'data, 'file>>
[src]
&'file self
) -> Option<WasmSymbolTable<'data, 'file>>
pub fn dynamic_relocations(&self) -> Option<NoDynamicRelocationIterator>
[src]
pub fn imports(&self) -> Result<Vec<Import<'data>>>
[src]
pub fn exports(&self) -> Result<Vec<Export<'data>>>
[src]
pub fn has_debug_symbols(&self) -> bool
[src]
pub fn flags(&self) -> FileFlags
[src]
pub fn endianness(&self) -> Endianness
[src]
pub fn symbol_map(&'file self) -> SymbolMap<SymbolMapName<'data>>
[src]
pub fn object_map(&'file self) -> ObjectMap<'data>
[src]
pub fn mach_uuid(&self) -> Result<Option<[u8; 16]>>
[src]
pub fn build_id(&self) -> Result<Option<&'data [u8]>>
[src]
pub fn gnu_debuglink(&self) -> Result<Option<(&'data [u8], u32)>>
[src]
Auto Trait Implementations
impl<'data> RefUnwindSafe for WasmFile<'data>
impl<'data> Send for WasmFile<'data>
impl<'data> Sync for WasmFile<'data>
impl<'data> Unpin for WasmFile<'data>
impl<'data> UnwindSafe for WasmFile<'data>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,