Lines Matching full:pub
14 pub struct BStr([u8]);
19 pub const fn len(&self) -> usize { in len()
25 pub const fn is_empty(&self) -> bool { in is_empty()
31 pub const fn from_bytes(bytes: &[u8]) -> &Self { in from_bytes()
133 pub enum CStrConvertError {
153 pub struct CStr([u8]);
158 pub const fn len(&self) -> usize { in len()
164 pub const fn len_with_nul(&self) -> usize { in len_with_nul()
176 pub const fn is_empty(&self) -> bool { in is_empty()
188 pub unsafe fn from_char_ptr<'a>(ptr: *const core::ffi::c_char) -> &'a Self { in from_char_ptr()
203 pub const fn from_bytes_with_nul(bytes: &[u8]) -> Result<&Self, CStrConvertError> { in from_bytes_with_nul()
231 pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked()
244 pub unsafe fn from_bytes_with_nul_unchecked_mut(bytes: &mut [u8]) -> &mut CStr { in from_bytes_with_nul_unchecked_mut()
251 pub const fn as_char_ptr(&self) -> *const core::ffi::c_char { in as_char_ptr()
257 pub fn as_bytes(&self) -> &[u8] { in as_bytes()
263 pub const fn as_bytes_with_nul(&self) -> &[u8] { in as_bytes_with_nul()
281 pub fn to_str(&self) -> Result<&str, core::str::Utf8Error> { in to_str()
303 pub unsafe fn as_str_unchecked(&self) -> &str { in as_str_unchecked()
309 pub fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring()
322 pub fn make_ascii_lowercase(&mut self) { in make_ascii_lowercase()
337 pub fn make_ascii_uppercase(&mut self) { in make_ascii_uppercase()
352 pub fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase()
369 pub fn to_ascii_uppercase(&self) -> Result<CString, AllocError> { in to_ascii_uppercase()
480 pub trait CStrIndex {}
640 pub(crate) struct RawFormatter {
664 pub(crate) unsafe fn from_ptrs(pos: *mut u8, end: *mut u8) -> Self { in from_ptrs()
679 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()
693 pub(crate) fn pos(&self) -> *mut u8 { in pos()
698 pub(crate) fn bytes_written(&self) -> usize { in bytes_written()
732 pub(crate) struct Formatter(RawFormatter);
741 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()
792 pub struct CString {
798 pub fn try_from_fmt(args: fmt::Arguments<'_>) -> Result<Self, Error> { in try_from_fmt()