Struct binarystream::binary::Uint64
source · pub struct Uint64 {}Expand description
- Uint64
- Represents an unsigned 64-bit ( 8 bytes ) integer. ( 0 to 18446744073709551615 )
Implementations§
source§impl Uint64
impl Uint64
pub fn into_reference(val: Uint64, env: Env) -> Result<Reference<Uint64>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<Uint64>>
source§impl Uint64
impl Uint64
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 Uint64
impl FromNapiMutRef for Uint64
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 Uint64
impl FromNapiRef for Uint64
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 &Uint64
impl FromNapiValue for &Uint64
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 Uint64
impl FromNapiValue for &mut Uint64
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 Uint64
impl ToNapiValue for Uint64
source§unsafe fn to_napi_value(env: napi_env, val: Uint64) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Uint64) -> Result<napi_value>
Safety Read more
source§impl ValidateNapiValue for &Uint64
impl ValidateNapiValue for &Uint64
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 Uint64
impl ValidateNapiValue for &mut Uint64
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 Uint64
impl RefUnwindSafe for Uint64
impl Send for Uint64
impl Sync for Uint64
impl Unpin for Uint64
impl UnwindSafe for Uint64
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