pub struct Dylib<'a> { /* private fields */ }Expand description
Structure which represents a library dependency
Implementations§
§impl Dylib<'_>
impl Dylib<'_>
pub fn set_name(&mut self, name: &str)
pub fn id_dylib(
name: &str,
timestamp: u32,
current_version: u32,
compat_version: u32
) -> Self
pub fn id_dylib( name: &str, timestamp: u32, current_version: u32, compat_version: u32 ) -> Self
Create a new ID_DYLIB command
pub fn load_dylib(
name: &str,
timestamp: u32,
current_version: u32,
compat_version: u32
) -> Self
pub fn load_dylib( name: &str, timestamp: u32, current_version: u32, compat_version: u32 ) -> Self
Create a new LOAD_DYLIB command
pub fn reexport_dylib(
name: &str,
timestamp: u32,
current_version: u32,
compat_version: u32
) -> Self
pub fn reexport_dylib( name: &str, timestamp: u32, current_version: u32, compat_version: u32 ) -> Self
Create a new REEXPORT_DYLIB command
pub fn weak_dylib(
name: &str,
timestamp: u32,
current_version: u32,
compat_version: u32
) -> Self
pub fn weak_dylib( name: &str, timestamp: u32, current_version: u32, compat_version: u32 ) -> Self
Create a new WEAK_DYLIB command
pub fn lazy_load_dylib(
name: &str,
timestamp: u32,
current_version: u32,
compat_version: u32
) -> Self
pub fn lazy_load_dylib( name: &str, timestamp: u32, current_version: u32, compat_version: u32 ) -> Self
Create a new LAZY_LOAD_DYLIB command
pub fn name_offset(&self) -> u32
pub fn name_offset(&self) -> u32
Original string offset of the name
pub fn current_version(&self) -> (u64, u64, u64)
pub fn current_version(&self) -> (u64, u64, u64)
Current version of the shared library
pub fn compatibility_version(&self) -> (u64, u64, u64)
pub fn compatibility_version(&self) -> (u64, u64, u64)
Compatibility version of the shared library
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Dylib<'a>
impl<'a> !Send for Dylib<'a>
impl<'a> !Sync for Dylib<'a>
impl<'a> Unpin for Dylib<'a>
impl<'a> !UnwindSafe for Dylib<'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