Enum CChar

pub enum CChar

Representation of a C character

Variants

Char(char)

A character that can be represented as a char

Raw(u64)

Any other character (8-bit characters, unicode surrogates, etc.)

Trait Implementations

impl Clone for CChar

fn clone(&self) -> CChar

impl Copy for CChar

impl Debug for CChar

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for CChar

impl From<u8> for CChar

fn from(i: u8) -> CChar

impl Into<Vec<u8>> for CChar

fn into(self) -> Vec<u8>

impl PartialEq for CChar

fn eq(&self, other: &CChar) -> bool

impl StructuralPartialEq for CChar

Auto Trait Implementations

impl Freeze for CChar

impl RefUnwindSafe for CChar

impl Send for CChar

impl Sync for CChar

impl Unpin for CChar

impl UnsafeUnpin for CChar

impl UnwindSafe for CChar

Blanket Implementations

impl<T> Any for CChar where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for CChar where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for CChar where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for CChar where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for CChar

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for CChar where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for CChar where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for CChar where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for CChar where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>