feat(napi): add some useful derived traits for the Null type (#1241)

This commit is contained in:
Jacob Kiesel 2022-07-22 09:45:02 -06:00 committed by GitHub
parent a5c9f12454
commit 1040c41760
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@ use std::ptr;
use crate::{bindgen_prelude::*, check_status, sys, type_of, Error, Result, Status, ValueType}; use crate::{bindgen_prelude::*, check_status, sys, type_of, Error, Result, Status, ValueType};
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, Ord, PartialOrd)]
pub struct Null; pub struct Null;
pub type Undefined = (); pub type Undefined = ();