Type Alias blas_array2::ffi::c_char

1.64.0 · source ·
pub type c_char = i8;
Expand description

Equivalent to C’s char type.

C’s char type is completely unlike Rust’s char type; while Rust’s type represents a unicode scalar value, C’s char type is just an ordinary integer. On modern architectures this type will always be either i8 or u8, as they use byte-addresses memory with 8-bit bytes.

C chars are most commonly used to make C strings. Unlike Rust, where the length of a string is included alongside the string, C strings mark the end of a string with the character '\0'. See CStr for more information.

Trait Implementations§

source§

impl From<BLASDiag> for c_char

source§

fn from(diag: BLASDiag) -> Self

Converts to this type from the input type.
source§

impl From<BLASLayout> for c_char

source§

fn from(layout: BLASLayout) -> Self

Converts to this type from the input type.
source§

impl From<BLASSide> for c_char

source§

fn from(side: BLASSide) -> Self

Converts to this type from the input type.
source§

impl From<BLASTranspose> for c_char

source§

fn from(trans: BLASTranspose) -> Self

Converts to this type from the input type.
source§

impl From<BLASUpLo> for c_char

source§

fn from(uplo: BLASUpLo) -> Self

Converts to this type from the input type.