Struct NodeRuntime
pub struct NodeRuntime { /* private fields */ }Expand description
Node.js runtime metadata.
Implementations§
§impl NodeRuntime
impl NodeRuntime
pub const fn new(version: Option<NodeVersion>) -> NodeRuntime
pub const fn new(version: Option<NodeVersion>) -> NodeRuntime
Creates runtime metadata with an optional version.
pub const fn version(self) -> Option<NodeVersion>
pub const fn version(self) -> Option<NodeVersion>
Returns the optional version.
Trait Implementations§
§impl Clone for NodeRuntime
impl Clone for NodeRuntime
§fn clone(&self) -> NodeRuntime
fn clone(&self) -> NodeRuntime
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 more§impl Debug for NodeRuntime
impl Debug for NodeRuntime
§impl PartialEq for NodeRuntime
impl PartialEq for NodeRuntime
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