Struct cambridge_asm::compile::CompiledProg
source · [−]pub struct CompiledProg {
pub prog: CompiledTree,
pub mem: Memory,
}
Fields
prog: CompiledTree
mem: Memory
Implementations
sourceimpl CompiledProg
impl CompiledProg
pub fn new(prog: CompiledTree, mem: Memory) -> Self
pub fn to_executor(self, inst_set: InstSet) -> Executor
Trait Implementations
sourceimpl Decode for CompiledProg
impl Decode for CompiledProg
sourceimpl<'de> Deserialize<'de> for CompiledProg
impl<'de> Deserialize<'de> for CompiledProg
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Encode for CompiledProg
impl Encode for CompiledProg
sourceimpl Serialize for CompiledProg
impl Serialize for CompiledProg
Auto Trait Implementations
impl RefUnwindSafe for CompiledProg
impl Send for CompiledProg
impl Sync for CompiledProg
impl Unpin for CompiledProg
impl UnwindSafe for CompiledProg
Blanket Implementations
sourceimpl<'de, T> BorrowDecode<'de> for T where
T: Decode,
impl<'de, T> BorrowDecode<'de> for T where
T: Decode,
sourcefn borrow_decode<D>(decoder: &mut D) -> Result<T, DecodeError> where
D: Decoder,
fn borrow_decode<D>(decoder: &mut D) -> Result<T, DecodeError> where
D: Decoder,
Attempt to decode this type with the given BorrowDecode.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more