#[repr(i32)]pub enum CharEncoding {
Latin1 = 1,
Utf8 = 2,
}Expand description
Encoding for reading and writing atom and string bytes.
Selects how the byte buffer in functions like make_atom, get_string,
and make_string is interpreted. Latin1 is one byte per character;
Utf8 (NIF 2.17) is variable-width.
ErlNifCharEncoding — NIF 1.0 — OTP R13B04
Variants§
Latin1 = 1
Latin-1 (ISO-8859-1).
ERL_NIF_LATIN1 — NIF 1.0 — OTP R13B04
Utf8 = 2
UTF-8.
ERL_NIF_UTF8 — NIF 2.17 — OTP 26
Trait Implementations§
Source§impl Clone for CharEncoding
impl Clone for CharEncoding
Source§fn clone(&self) -> CharEncoding
fn clone(&self) -> CharEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CharEncoding
impl Eq for CharEncoding
Source§impl PartialEq for CharEncoding
impl PartialEq for CharEncoding
Source§fn eq(&self, other: &CharEncoding) -> bool
fn eq(&self, other: &CharEncoding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CharEncoding
Auto Trait Implementations§
impl Freeze for CharEncoding
impl RefUnwindSafe for CharEncoding
impl Send for CharEncoding
impl Sync for CharEncoding
impl Unpin for CharEncoding
impl UnsafeUnpin for CharEncoding
impl UnwindSafe for CharEncoding
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