pub struct VirtualLibrary { /* private fields */ }Available on crate feature
module only.Expand description
This represents a virtual library to be used in full statically-linked applications.
Implementations§
Source§impl VirtualLibrary
impl VirtualLibrary
Sourcepub const fn new(
name: &'static str,
symbols: &'static [(&'static str, *const c_void)],
) -> Self
pub const fn new( name: &'static str, symbols: &'static [(&'static str, *const c_void)], ) -> Self
Creates a new VirtualLibrary from a name and an array of symbols.
This function is const to allow statics declaration from build tool.
Sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
Returns the name of this VirtualLibrary.
Trait Implementations§
Source§impl Clone for VirtualLibrary
impl Clone for VirtualLibrary
Source§fn clone(&self) -> VirtualLibrary
fn clone(&self) -> VirtualLibrary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Library for VirtualLibrary
impl Library for VirtualLibrary
impl Copy for VirtualLibrary
impl Send for VirtualLibrary
impl Sync for VirtualLibrary
Auto Trait Implementations§
impl Freeze for VirtualLibrary
impl RefUnwindSafe for VirtualLibrary
impl Unpin for VirtualLibrary
impl UnwindSafe for VirtualLibrary
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