pub enum Import<'a> {
ByName {
hint: usize,
name: &'a CStr,
},
ByOrdinal {
ord: u16,
},
}Expand description
Imported symbol.
Variants§
ByName
Imported by name.
The hint is an index in the export names table that may contain the desired symbol. For more information see this blog post by Raymond Chen.
ByOrdinal
Imported by ordinal.
Trait Implementations§
impl<'a> Copy for Import<'a>
impl<'a> Eq for Import<'a>
impl<'a> StructuralPartialEq for Import<'a>
Auto Trait Implementations§
impl<'a> Freeze for Import<'a>
impl<'a> RefUnwindSafe for Import<'a>
impl<'a> Send for Import<'a>
impl<'a> Sync for Import<'a>
impl<'a> Unpin for Import<'a>
impl<'a> UnwindSafe for Import<'a>
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