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, __A> Decode<'__de, Text, __A> for Unit<S>
impl<'__de, S, __A> Decode<'__de, Text, __A> for Unit<S>
Source§const IS_BITWISE_DECODE: bool = false
const IS_BITWISE_DECODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§impl<'de, S, A> Decode<'de, Binary, A> for Unit<S>
impl<'de, S, A> Decode<'de, Binary, A> for Unit<S>
Source§const IS_BITWISE_DECODE: bool = false
const IS_BITWISE_DECODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
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
Source§impl<S> Encode<Binary> for Unit<S>
impl<S> Encode<Binary> for Unit<S>
Source§const IS_BITWISE_ENCODE: bool = false
const IS_BITWISE_ENCODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. Read more
Source§impl<S> Encode<Text> for Unit<S>
impl<S> Encode<Text> for Unit<S>
Source§const IS_BITWISE_ENCODE: bool = false
const IS_BITWISE_ENCODE: bool = false
Whether the type is packed. Packed types can be bitwise copied if the
representation of the serialization format is identical to the memory
layout of the type. 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