pub struct DataTypes {
pub uint8: String,
pub int16: String,
pub uint16: String,
pub int32: String,
pub uint32: String,
pub float32: String,
pub float64: String,
}Expand description
Data type constants
Fields§
§uint8: StringUnsigned 8-bit integer
int16: StringSigned 16-bit integer
uint16: StringUnsigned 16-bit integer
int32: StringSigned 32-bit integer
uint32: StringUnsigned 32-bit integer
float32: String32-bit floating point
float64: String64-bit floating point
Trait Implementations§
Source§impl FromNapiValue for DataTypes
impl FromNapiValue for DataTypes
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for DataTypes
impl ToNapiValue for DataTypes
Source§unsafe fn to_napi_value(env: napi_env, val: DataTypes) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: DataTypes) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for DataTypes
impl ValidateNapiValue for DataTypes
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for DataTypes
impl RefUnwindSafe for DataTypes
impl Send for DataTypes
impl Sync for DataTypes
impl Unpin for DataTypes
impl UnsafeUnpin for DataTypes
impl UnwindSafe for DataTypes
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