pub struct Unit<S = DefaultStorage> { /* private fields */ }
Expand description
Instructions and debug info from a single compilation.
See rune::prepare
for more.
Implementations§
Source§impl Unit
impl Unit
Sourcepub fn emit_instructions<O>(
&self,
out: &mut O,
sources: &Sources,
without_source: bool,
) -> Result<()>where
O: WriteColor,
Available on crate feature emit
only.
pub fn emit_instructions<O>(
&self,
out: &mut O,
sources: &Sources,
without_source: bool,
) -> Result<()>where
O: WriteColor,
emit
only.Dump instructions in a human readable manner.
Trait Implementations§
Source§impl<'de, S> Deserialize<'de> for Unit<S>where
S: Serialize + DeserializeOwned,
impl<'de, S> Deserialize<'de> for Unit<S>where
S: Serialize + DeserializeOwned,
Source§fn 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
Auto Trait Implementations§
impl<S> Freeze for Unit<S>where
S: Freeze,
impl<S> RefUnwindSafe for Unit<S>where
S: RefUnwindSafe,
impl<S> Send for Unit<S>where
S: Send,
impl<S> Sync for Unit<S>where
S: Sync,
impl<S> Unpin for Unit<S>where
S: Unpin,
impl<S> UnwindSafe for Unit<S>where
S: UnwindSafe,
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