std::ffi::c_char
pub type c_char = i8;
- Kind
- type alias
- Module
std::ffi- Since
- 1.64.0
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::ffi in the Rust reference. This page has 101 cards.
pub type c_char = i8;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_double = f64;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_float = f32;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_int = i32;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_long = i64;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_longlong = i64;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_ptrdiff_t = isize;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_schar = i8;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_short = i16;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_size_t = usize;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_ssize_t = isize;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_uchar = u8;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_uint = u32;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_ulong = u64;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_ulonglong = u64;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type c_ushort = u16;
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub enum c_void
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct CStr
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_c_str(&self) -> &CStr
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_ptr(&self) -> *const i8
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn bytes(&self) -> Bytes<'_>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn count_bytes(&self) -> usize
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn display(&self) -> impl Display
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_bytes_until_nul( bytes: &[u8], ) -> Result<&CStr, FromBytesUntilNulError>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_bytes_with_nul( bytes: &[u8], ) -> Result<&CStr, FromBytesWithNulError>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn from_ptr<'a>(ptr: *const i8) -> &'a CStr
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_c_string(self: Box<CStr>) -> CString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_empty(&self) -> bool
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn to_bytes(&self) -> &[u8]
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn to_bytes_with_nul(&self) -> &[u8]
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn to_str(&self) -> Result<&str, Utf8Error>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_string_lossy(&self) -> Cow<'_, str>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct CString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_bytes(&self) -> &[u8]
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_bytes_with_nul(&self) -> &[u8]
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_c_str(&self) -> &CStr
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_raw(ptr: *mut i8) -> CString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_vec_unchecked(v: Vec<u8>) -> CString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn from_vec_with_nul(v: Vec<u8>) -> Result<CString, FromVecWithNulError>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_vec_with_nul_unchecked(v: Vec<u8>) -> CString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_boxed_c_str(self) -> Box<CStr>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_bytes(self) -> Vec<u8>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_bytes_with_nul(self) -> Vec<u8>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_raw(self) -> *mut i8
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_string(self) -> Result<String, IntoStringError>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new<T>(t: T) -> Result<CString, NulError> where T: Into<Vec<u8>>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct FromBytesUntilNulError(/* private fields */)
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub enum FromBytesWithNulError
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct FromVecWithNulError
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_bytes(&self) -> &[u8]
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_bytes(self) -> Vec<u8>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct IntoStringError
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_cstring(self) -> CString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn utf8_error(&self) -> Utf8Error
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct NulError(/* private fields */)
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_vec(self) -> Vec<u8>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn nul_position(&self) -> usize
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct OsStr
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_encoded_bytes(&self) -> &[u8]
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_os_str(&self) -> &OsStr
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn display(&self) -> Display<'_>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn eq_ignore_ascii_case<S: AsRef<OsStr>>(&self, other: S) -> bool
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_encoded_bytes_unchecked(bytes: &[u8]) -> &Self
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_os_string(self: Box<Self>) -> OsString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_ascii(&self) -> bool
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_empty(&self) -> bool
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn len(&self) -> usize
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn make_ascii_lowercase(&mut self)
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn make_ascii_uppercase(&mut self)
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn new<S: AsRef<OsStr> + ?Sized>(s: &S) -> &OsStr
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn slice_encoded_bytes<R: RangeBounds<usize>>(&self, range: R) -> &Self
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_at(&self, mid: usize) -> (&OsStr, &OsStr)
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_at_checked(&self, mid: usize) -> Option<(&OsStr, &OsStr)>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_ascii_lowercase(&self) -> OsString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_ascii_uppercase(&self) -> OsString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_os_string(&self) -> OsString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_str(&self) -> Option<&str>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_string_lossy(&self) -> Cow<'_, str>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct OsString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn as_os_str(&self) -> &OsStr
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn capacity(&self) -> usize
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn clear(&mut self)
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn from_encoded_bytes_unchecked(bytes: Vec<u8>) -> Self
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_boxed_os_str(self) -> Box<OsStr>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_encoded_bytes(self) -> Vec<u8>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_string(self) -> Result<String, OsString>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn leak<'a>(self) -> &'a mut OsStr
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new() -> OsString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn push<T: AsRef<OsStr>>(&mut self, s: T)
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn reserve(&mut self, additional: usize)
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn reserve_exact(&mut self, additional: usize)
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn shrink_to(&mut self, min_capacity: usize)
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn shrink_to_fit(&mut self)
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn truncate(&mut self, len: usize)
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_reserve_exact( &mut self, additional: usize, ) -> Result<(), TryReserveError>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn with_capacity(capacity: usize) -> OsString
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe trait VaArgSafe: Copy
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct VaList<'a>
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn next_arg<T>(&mut self) -> T where T: VaArgSafe
std::ffiSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.