pub struct Uint24 {}Expand description
- Uint24
- Represents an unsigned 24-bit ( 3 bytes ) integer. ( 0 to 16777215 )
Implementations§
Source§impl Uint24
impl Uint24
pub fn into_reference(val: Uint24, env: Env) -> Result<Reference<Uint24>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<Uint24>>
Source§impl Uint24
impl Uint24
Sourcepub fn read(
stream: &mut BinaryStream,
endian: Option<Endianness>,
) -> Result<u32>
pub fn read( stream: &mut BinaryStream, endian: Option<Endianness>, ) -> Result<u32>
- read
- Reads an unsigned 24-bit ( 3 bytes ) integer from the stream. ( 0 to 16777215 )
Sourcepub fn write(stream: &mut BinaryStream, value: u32, endian: Option<Endianness>)
pub fn write(stream: &mut BinaryStream, value: u32, endian: Option<Endianness>)
- write
- Writes an unsigned 24-bit ( 3 bytes ) integer to the stream. ( 0 to 16777215 )
Trait Implementations§
Source§impl FromNapiMutRef for Uint24
impl FromNapiMutRef for Uint24
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 Uint24
impl FromNapiRef for Uint24
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 &Uint24
impl FromNapiValue for &Uint24
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 Uint24
impl FromNapiValue for &mut Uint24
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 Uint24
impl FromNapiValue for Uint24
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 Uint24
impl ToNapiValue for Uint24
Source§unsafe fn to_napi_value(env: napi_env, val: Uint24) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Uint24) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &Uint24
impl ValidateNapiValue for &Uint24
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 Uint24
impl ValidateNapiValue for &mut Uint24
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 Uint24
impl RefUnwindSafe for Uint24
impl Send for Uint24
impl Sync for Uint24
impl Unpin for Uint24
impl UnwindSafe for Uint24
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