pub struct String32 {}Expand description
- String
- Represents a signed 32-bit variable length ( 4 bytes ) utf-8 string. ( 0 to 4294967295 )
Implementations§
Source§impl String32
 
impl String32
pub fn into_reference(val: String32, env: Env) -> Result<Reference<String32>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<String32>>
Source§impl String32
 
impl String32
Sourcepub fn read(
    stream: &mut BinaryStream,
    endian: Option<Endianness>,
) -> Result<String>
 
pub fn read( stream: &mut BinaryStream, endian: Option<Endianness>, ) -> Result<String>
- read
- Reads a signed 32-bit ( 4 bytes ) utf-8 string from the stream. ( 0 to 4294967295 )
Sourcepub fn write(
    stream: &mut BinaryStream,
    value: String,
    endian: Option<Endianness>,
)
 
pub fn write( stream: &mut BinaryStream, value: String, endian: Option<Endianness>, )
- write
- Writes a signed 32-bit ( 4 bytes ) utf-8 string to the stream. ( 0 to 4294967295 )
Trait Implementations§
Source§impl FromNapiMutRef for String32
 
impl FromNapiMutRef for String32
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 String32
 
impl FromNapiRef for String32
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 &String32
 
impl FromNapiValue for &String32
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 String32
 
impl FromNapiValue for &mut String32
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 String32
 
impl FromNapiValue for String32
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 String32
 
impl ToNapiValue for String32
Source§unsafe fn to_napi_value(env: napi_env, val: String32) -> Result<napi_value>
 
unsafe fn to_napi_value(env: napi_env, val: String32) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &String32
 
impl ValidateNapiValue for &String32
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 String32
 
impl ValidateNapiValue for &mut String32
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 String32
impl RefUnwindSafe for String32
impl Send for String32
impl Sync for String32
impl Unpin for String32
impl UnwindSafe for String32
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