Searched defs:CStr (Results 1 – 9 of 9) sorted by relevance
153 pub struct CStr([u8]); struct155 impl CStr { implementation231 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()378 impl fmt::Display for CStr { implementation407 impl fmt::Debug for CStr { implementation438 impl AsRef<BStr> for CStr { implementation445 impl Deref for CStr { implementation454 impl Index<ops::RangeFrom<usize>> for CStr { implementation467 impl Index<ops::RangeFull> for CStr { implementation[all …]
58 fn request_internal(name: &CStr, dev: &Device, func: FwFunc) -> Result<Self> { in request_internal()75 pub fn request(name: &CStr, dev: &Device) -> Result<Self> { in request()81 pub fn request_nowarn(name: &CStr, dev: &Device) -> Result<Self> { in request_nowarn()
147 pub fn name(&self) -> Option<&'static CStr> { in name()164 pub fn name(&self) -> Option<&'static CStr> { in name()
370 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> in new()
44 const NAME: &'static CStr = c_str!("Asix Electronics AX88772A"); variable108 const NAME: &'static CStr = c_str!("Asix Electronics AX88772C"); variable128 const NAME: &'static CStr = c_str!("Asix Electronics AX88796B"); variable
39 const NAME: &'static CStr = c_str!("QT2025 10Gpbs SFP+"); variable
105 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
109 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
582 const NAME: &'static CStr; variable