pub struct ULong {}
Expand description
- ULong
- Represents an unsigned 64-bit ( 8 bytes ) integer. ( 0 to 18446744073709551615 )
Implementations§
Source§impl ULong
impl ULong
pub fn into_reference(val: ULong, env: Env) -> Result<Reference<ULong>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<ULong>>
Source§impl ULong
impl ULong
Sourcepub fn read(
stream: &mut BinaryStream,
endian: Option<Endianness>,
) -> Result<BigInt>
pub fn read( stream: &mut BinaryStream, endian: Option<Endianness>, ) -> Result<BigInt>
- read
- Reads an unsigned 64-bit ( 8 bytes ) integer from the stream. ( 0 to 18446744073709551615 )
Sourcepub fn write(
stream: &mut BinaryStream,
value: BigInt,
endian: Option<Endianness>,
)
pub fn write( stream: &mut BinaryStream, value: BigInt, endian: Option<Endianness>, )
- write
- Writes an unsigned 64-bit ( 8 bytes ) integer to the stream. ( 0 to 18446744073709551615 )
Trait Implementations§
Source§impl FromNapiMutRef for ULong
impl FromNapiMutRef for ULong
Source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>
Safety Read more
Source§impl FromNapiRef for ULong
impl FromNapiRef for ULong
Source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static Self>
Safety Read more
Source§impl FromNapiValue for &ULong
impl FromNapiValue for &ULong
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 FromNapiValue for &mut ULong
impl FromNapiValue for &mut ULong
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 FromNapiValue for ULong
impl FromNapiValue for ULong
Source§unsafe fn from_napi_value(_: napi_env, _: napi_value) -> Result<Self>
unsafe fn from_napi_value(_: napi_env, _: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ToNapiValue for ULong
impl ToNapiValue for ULong
Source§unsafe fn to_napi_value(env: napi_env, val: ULong) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: ULong) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &ULong
impl ValidateNapiValue for &ULong
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &mut ULong
impl ValidateNapiValue for &mut ULong
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl Freeze for ULong
impl RefUnwindSafe for ULong
impl Send for ULong
impl Sync for ULong
impl Unpin for ULong
impl UnwindSafe for ULong
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