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