Struct napi::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
sourceimpl Clone for NodeVersion
impl Clone for NodeVersion
sourcefn clone(&self) -> NodeVersion
fn clone(&self) -> NodeVersion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NodeVersion
impl Debug for NodeVersion
sourceimpl TryFrom<napi_node_version> for NodeVersion
impl TryFrom<napi_node_version> for NodeVersion
sourcefn 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 RefUnwindSafe for NodeVersion
impl Send for NodeVersion
impl Sync for NodeVersion
impl Unpin for NodeVersion
impl UnwindSafe for NodeVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more