pub struct NodeRuntime { /* private fields */ }Expand description
Node.js runtime metadata.
Implementations§
Source§impl NodeRuntime
impl NodeRuntime
Sourcepub const fn new(version: Option<NodeVersion>) -> NodeRuntime
pub const fn new(version: Option<NodeVersion>) -> NodeRuntime
Creates runtime metadata with an optional version.
Sourcepub const fn version(self) -> Option<NodeVersion>
pub const fn version(self) -> Option<NodeVersion>
Returns the optional version.
Trait Implementations§
Source§impl Clone for NodeRuntime
impl Clone for NodeRuntime
Source§fn clone(&self) -> NodeRuntime
fn clone(&self) -> NodeRuntime
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 moreSource§impl Debug for NodeRuntime
impl Debug for NodeRuntime
Source§impl PartialEq for NodeRuntime
impl PartialEq for NodeRuntime
Source§fn eq(&self, other: &NodeRuntime) -> bool
fn eq(&self, other: &NodeRuntime) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NodeRuntime
impl Eq for NodeRuntime
impl StructuralPartialEq for NodeRuntime
Auto Trait Implementations§
impl Freeze for NodeRuntime
impl RefUnwindSafe for NodeRuntime
impl Send for NodeRuntime
impl Sync for NodeRuntime
impl Unpin for NodeRuntime
impl UnsafeUnpin for NodeRuntime
impl UnwindSafe for NodeRuntime
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