pub enum EntrypointKind {
EntryShim,
ModuleInit,
ModuleDatInit,
ProcSymbol,
EnclosingFunction,
RttiDestructor,
RttiTraceImpl,
}Expand description
What a CodeEntrypoint points at.
§Stability
The string returned by as_str /
Display is part of nimrod’s stable API. Changes are
SemVer-major.
Variants§
EntryShim
A Nim entry shim (NimMain, PreMain, …).
ModuleInit
A module init function (*Init000).
ModuleDatInit
A module data-init function (*DatInit000).
ProcSymbol
A demangled Nim procedure symbol.
EnclosingFunction
A function that contains a raise site (resolved from the raise-site
walker via its enclosing function symbol).
RttiDestructor
A V2 RTTI =destroy destructor proc.
RttiTraceImpl
A V2 RTTI cycle-collector trace proc.
Implementations§
Trait Implementations§
Source§impl Clone for EntrypointKind
impl Clone for EntrypointKind
Source§fn clone(&self) -> EntrypointKind
fn clone(&self) -> EntrypointKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EntrypointKind
Source§impl Debug for EntrypointKind
impl Debug for EntrypointKind
Source§impl Display for EntrypointKind
impl Display for EntrypointKind
impl Eq for EntrypointKind
Source§impl Hash for EntrypointKind
impl Hash for EntrypointKind
Source§impl PartialEq for EntrypointKind
impl PartialEq for EntrypointKind
Source§fn eq(&self, other: &EntrypointKind) -> bool
fn eq(&self, other: &EntrypointKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EntrypointKind
Auto Trait Implementations§
impl Freeze for EntrypointKind
impl RefUnwindSafe for EntrypointKind
impl Send for EntrypointKind
impl Sync for EntrypointKind
impl Unpin for EntrypointKind
impl UnsafeUnpin for EntrypointKind
impl UnwindSafe for EntrypointKind
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