pub struct NodeVersionParser;
Expand description
Version parser for Node.js releases
Implementations§
Source§impl NodeVersionParser
impl NodeVersionParser
Sourcepub fn parse_versions(
json: &Value,
include_prerelease: bool,
) -> Result<Vec<VersionInfo>>
pub fn parse_versions( json: &Value, include_prerelease: bool, ) -> Result<Vec<VersionInfo>>
Parse Node.js versions from the official API response
Trait Implementations§
Source§impl Clone for NodeVersionParser
impl Clone for NodeVersionParser
Source§fn clone(&self) -> NodeVersionParser
fn clone(&self) -> NodeVersionParser
Returns a duplicate 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 Debug for NodeVersionParser
impl Debug for NodeVersionParser
Source§impl Default for NodeVersionParser
impl Default for NodeVersionParser
Source§impl VersionParser for NodeVersionParser
impl VersionParser for NodeVersionParser
Source§fn parse_versions(
&self,
json: &Value,
include_prerelease: bool,
) -> Result<Vec<VersionInfo>>
fn parse_versions( &self, json: &Value, include_prerelease: bool, ) -> Result<Vec<VersionInfo>>
Parse versions from JSON data
Auto Trait Implementations§
impl Freeze for NodeVersionParser
impl RefUnwindSafe for NodeVersionParser
impl Send for NodeVersionParser
impl Sync for NodeVersionParser
impl Unpin for NodeVersionParser
impl UnwindSafe for NodeVersionParser
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