std::os::raw::c_char - Rust
Description: API documentation for the Rust `c_char` type in crate `std`.
Keywords: rust, rustlang, rust-lang, c_char

# 1.1.0[−][src]Type Definition std::os::raw::c_char

    type c_char = u8;

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. This type will always be either `i8` or `u8`, as the type is defined as being one byte long.

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.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)