pub struct NpmResolutionPackageSystemInfo {
pub os: Vec<String>,
pub cpu: Vec<String>,
}
Fields§
§os: Vec<String>
§cpu: Vec<String>
Implementations§
source§impl NpmResolutionPackageSystemInfo
impl NpmResolutionPackageSystemInfo
pub fn matches_system(&self, system_info: &NpmSystemInfo) -> bool
pub fn matches_cpu(&self, target: &str) -> bool
pub fn matches_os(&self, target: &str) -> bool
Trait Implementations§
source§impl Clone for NpmResolutionPackageSystemInfo
impl Clone for NpmResolutionPackageSystemInfo
source§fn clone(&self) -> NpmResolutionPackageSystemInfo
fn clone(&self) -> NpmResolutionPackageSystemInfo
Returns a copy 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 Default for NpmResolutionPackageSystemInfo
impl Default for NpmResolutionPackageSystemInfo
source§fn default() -> NpmResolutionPackageSystemInfo
fn default() -> NpmResolutionPackageSystemInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NpmResolutionPackageSystemInfo
impl<'de> Deserialize<'de> for NpmResolutionPackageSystemInfo
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 PartialEq for NpmResolutionPackageSystemInfo
impl PartialEq for NpmResolutionPackageSystemInfo
source§fn eq(&self, other: &NpmResolutionPackageSystemInfo) -> bool
fn eq(&self, other: &NpmResolutionPackageSystemInfo) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for NpmResolutionPackageSystemInfo
impl StructuralPartialEq for NpmResolutionPackageSystemInfo
Auto Trait Implementations§
impl Freeze for NpmResolutionPackageSystemInfo
impl RefUnwindSafe for NpmResolutionPackageSystemInfo
impl Send for NpmResolutionPackageSystemInfo
impl Sync for NpmResolutionPackageSystemInfo
impl Unpin for NpmResolutionPackageSystemInfo
impl UnwindSafe for NpmResolutionPackageSystemInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.