Struct binarystream::binary::Float64
source · pub struct Float64 {}Expand description
- Float64
- Respresents a signed 64 bit ( 8 bytes ) floating point number. ( -1.7976931348623157e308 to 1.7976931348623157e308 )
Implementations§
source§impl Float64
impl Float64
pub fn into_reference(val: Float64, env: Env) -> Result<Reference<Float64>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<Float64>>
source§impl Float64
impl Float64
sourcepub fn read(
stream: &mut BinaryStream,
endian: Option<Endianness>
) -> Result<f64>
pub fn read( stream: &mut BinaryStream, endian: Option<Endianness> ) -> Result<f64>
- read
- Reads a signed 64 bit ( 8 bytes ) floating point number from the stream. ( -1.7976931348623157e308 to 1.7976931348623157e308 )
sourcepub fn write(stream: &mut BinaryStream, value: f64, endian: Option<Endianness>)
pub fn write(stream: &mut BinaryStream, value: f64, endian: Option<Endianness>)
- write
- Writes a signed 64 bit ( 8 bytes ) floating point number to the stream. ( -1.7976931348623157e308 to 1.7976931348623157e308 )
Trait Implementations§
source§impl FromNapiMutRef for Float64
impl FromNapiMutRef for Float64
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 Float64
impl FromNapiRef for Float64
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 &Float64
impl FromNapiValue for &Float64
source§impl FromNapiValue for &mut Float64
impl FromNapiValue for &mut Float64
source§impl ToNapiValue for Float64
impl ToNapiValue for Float64
source§impl ValidateNapiValue for &Float64
impl ValidateNapiValue for &Float64
Auto Trait Implementations§
impl RefUnwindSafe for Float64
impl Send for Float64
impl Sync for Float64
impl Unpin for Float64
impl UnwindSafe for Float64
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