Struct rattler_virtual_packages::LibC
source · pub struct LibC {
pub family: String,
pub version: Version,
}Expand description
LibC virtual package description
Fields§
§family: StringThe family of LibC. This could be glibc for instance.
version: VersionThe version of the libc distribution.
Implementations§
source§impl LibC
impl LibC
sourcepub fn current() -> Result<Option<Self>, DetectLibCError>
pub fn current() -> Result<Option<Self>, DetectLibCError>
Returns the LibC family and version of the current platform.
Returns an error if determining the LibC family and version resulted in an error. Returns
None if the current platform does not have an available version of LibC.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LibC
impl<'de> Deserialize<'de> for LibC
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
source§impl From<LibC> for GenericVirtualPackage
impl From<LibC> for GenericVirtualPackage
source§impl From<LibC> for VirtualPackage
impl From<LibC> for VirtualPackage
source§impl PartialEq for LibC
impl PartialEq for LibC
impl Eq for LibC
impl StructuralEq for LibC
impl StructuralPartialEq for LibC
Auto Trait Implementations§
impl RefUnwindSafe for LibC
impl Send for LibC
impl Sync for LibC
impl Unpin for LibC
impl UnwindSafe for LibC
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.