[−][src]Struct watson::ProgramView
Fields
sections: Vec<SectionView<'a>>
Implementations
impl<'p> ProgramView<'p>
[src]
pub fn find_exported_function<'a>(
&'a self,
name: &str
) -> Result<&'a ExportView<'_>, &'static str>
[src]
&'a self,
name: &str
) -> Result<&'a ExportView<'_>, &'static str>
pub fn find_code_block<'a>(
&'a self,
index: usize
) -> Result<&'a CodeBlock, &'static str>
[src]
&'a self,
index: usize
) -> Result<&'a CodeBlock, &'static str>
pub fn to_owned(&self) -> Program
[src]
Trait Implementations
impl<'a> Debug for ProgramView<'a>
[src]
impl<'de: 'a, 'a> Deserialize<'de> for ProgramView<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'_> InterpretableProgram for ProgramView<'_>
[src]
fn import_fn_details(
&self,
index: usize
) -> Result<(&str, &str, usize), &'static str>
[src]
&self,
index: usize
) -> Result<(&str, &str, usize), &'static str>
fn load_data_into_memory(&self, mem: &mut Vec<u8>) -> Result<(), &'static str>
[src]
fn initial_memory_size(&self) -> usize
[src]
fn import_fn_count(&self) -> usize
[src]
fn fetch_export_fn_index(
&self,
name: &str
) -> Result<(usize, usize), &'static str>
[src]
&self,
name: &str
) -> Result<(usize, usize), &'static str>
fn fetch_instruction<'a>(
&'a self,
position: &[usize]
) -> Result<Option<&'a Instruction>, &'static str>
[src]
&'a self,
position: &[usize]
) -> Result<Option<&'a Instruction>, &'static str>
fn create_locals(
&self,
position: &[usize]
) -> Result<Vec<WasmValue>, &'static str>
[src]
&self,
position: &[usize]
) -> Result<Vec<WasmValue>, &'static str>
impl<'a> PartialEq<ProgramView<'a>> for ProgramView<'a>
[src]
fn eq(&self, other: &ProgramView<'a>) -> bool
[src]
fn ne(&self, other: &ProgramView<'a>) -> bool
[src]
impl<'a> Serialize for ProgramView<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'a> StructuralPartialEq for ProgramView<'a>
[src]
Auto Trait Implementations
impl<'a> Send for ProgramView<'a>
impl<'a> Sync for ProgramView<'a>
impl<'a> Unpin for ProgramView<'a>
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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.
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>,