Struct napi_h::NodeVersion
source · pub struct NodeVersion {
pub major: u32,
pub minor: u32,
pub patch: u32,
pub release: &'static str,
}
Fields§
§major: u32
§minor: u32
§patch: u32
§release: &'static str
Trait Implementations§
source§impl Clone for NodeVersion
impl Clone for NodeVersion
source§fn clone(&self) -> NodeVersion
fn clone(&self) -> NodeVersion
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 Debug for NodeVersion
impl Debug for NodeVersion
source§impl TryFrom<napi_node_version> for NodeVersion
impl TryFrom<napi_node_version> for NodeVersion
source§fn try_from(value: napi_node_version) -> Result<NodeVersion, Error>
fn try_from(value: napi_node_version) -> Result<NodeVersion, Error>
Performs the conversion.
impl Copy for NodeVersion
Auto Trait Implementations§
impl Freeze for NodeVersion
impl RefUnwindSafe for NodeVersion
impl Send for NodeVersion
impl Sync for NodeVersion
impl Unpin for NodeVersion
impl UnwindSafe for NodeVersion
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