pub enum CodeRef {
Entry(EntryRef),
Extern(ExternRef),
Termination,
}
Expand description
CodeRef is a type refer to a single executable entry. This can be either a entry of a program, an external entry point defined within/without the program, or indicate the end of execution.
Variants§
Entry(EntryRef)
An entry refers to a entry point of a program.
Extern(ExternRef)
Refers to an external function entry defined in a program.
Termination
Indicate the end of execution.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CodeRef
impl<'de> Deserialize<'de> for CodeRef
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
impl Copy for CodeRef
impl Eq for CodeRef
Auto Trait Implementations§
impl Freeze for CodeRef
impl RefUnwindSafe for CodeRef
impl Send for CodeRef
impl Sync for CodeRef
impl Unpin for CodeRef
impl UnwindSafe for CodeRef
Blanket Implementations§
Source§impl<T> AnyDebugDisplay for T
impl<T> AnyDebugDisplay for T
Source§fn as_display(&self) -> &dyn Display
fn as_display(&self) -> &dyn Display
Obtain a trait object for
Display
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