#[non_exhaustive]pub enum NodeJsPkgExt {
Targz,
Tarxz,
Zip,
Msi,
S7z,
}Expand description
The file extension of a Node.js distributable
Non-exhaustive: Node.js has added and removed package formats over time, so new variants may appear in a minor release
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Targz
gzip-compressed tarball (tar.gz)
Tarxz
xz-compressed tarball (tar.xz)
Zip
zip archive (zip) - Windows only
Msi
Windows installer package (msi)
S7z
7-Zip archive (7z) - Windows only
Implementations§
Source§impl NodeJsPkgExt
impl NodeJsPkgExt
Sourcepub fn new() -> NodeJsPkgExt
pub fn new() -> NodeJsPkgExt
Trait Implementations§
Source§impl Clone for NodeJsPkgExt
impl Clone for NodeJsPkgExt
Source§fn clone(&self) -> NodeJsPkgExt
fn clone(&self) -> NodeJsPkgExt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NodeJsPkgExt
Source§impl Debug for NodeJsPkgExt
impl Debug for NodeJsPkgExt
Source§impl Default for NodeJsPkgExt
impl Default for NodeJsPkgExt
Source§fn default() -> NodeJsPkgExt
fn default() -> NodeJsPkgExt
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeJsPkgExt
impl<'de> Deserialize<'de> for NodeJsPkgExt
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 Display for NodeJsPkgExt
impl Display for NodeJsPkgExt
impl Eq for NodeJsPkgExt
Source§impl FromStr for NodeJsPkgExt
impl FromStr for NodeJsPkgExt
Source§type Err = NodeJsRelInfoError
type Err = NodeJsRelInfoError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<NodeJsPkgExt, NodeJsRelInfoError>
fn from_str(s: &str) -> Result<NodeJsPkgExt, NodeJsRelInfoError>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for NodeJsPkgExt
impl Hash for NodeJsPkgExt
Source§impl PartialEq for NodeJsPkgExt
impl PartialEq for NodeJsPkgExt
Source§impl Serialize for NodeJsPkgExt
impl Serialize for NodeJsPkgExt
impl StructuralPartialEq for NodeJsPkgExt
Auto Trait Implementations§
impl Freeze for NodeJsPkgExt
impl RefUnwindSafe for NodeJsPkgExt
impl Send for NodeJsPkgExt
impl Sync for NodeJsPkgExt
impl Unpin for NodeJsPkgExt
impl UnsafeUnpin for NodeJsPkgExt
impl UnwindSafe for NodeJsPkgExt
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.