pub struct LibraryNatives {
pub linux: Option<String>,
pub windows: Option<String>,
pub osx: Option<String>,
}
Expand description
Information about available native library.
Fields§
§linux: Option<String>
Linux native name.
windows: Option<String>
Windows native name.
osx: Option<String>
MacOs native name
Implementations§
Source§impl LibraryNatives
impl LibraryNatives
Sourcepub fn get_for_current_platform(&self) -> Option<String>
pub fn get_for_current_platform(&self) -> Option<String>
Gets the current platforms native.
Returns none when the platform is not supported/implemented. Currently linux, windows and macos are supported.
Trait Implementations§
Source§impl Clone for LibraryNatives
impl Clone for LibraryNatives
Source§fn clone(&self) -> LibraryNatives
fn clone(&self) -> LibraryNatives
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LibraryNatives
impl Debug for LibraryNatives
Source§impl<'de> Deserialize<'de> for LibraryNatives
impl<'de> Deserialize<'de> for LibraryNatives
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
Auto Trait Implementations§
impl Freeze for LibraryNatives
impl RefUnwindSafe for LibraryNatives
impl Send for LibraryNatives
impl Sync for LibraryNatives
impl Unpin for LibraryNatives
impl UnwindSafe for LibraryNatives
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