Home
last modified time | relevance | path

Searched refs:from_bytes (Results 1 – 1 of 1) sorted by relevance

/rust/kernel/
A Dstr.rs30 pub const fn from_bytes(bytes: &[u8]) -> &Self { in from_bytes() method
49 .map(Self::from_bytes) in strip_prefix()
141 BStr::from_bytes(&self.0[index]) in index()
147 BStr::from_bytes(self) in as_ref()
523 BStr::from_bytes(self.as_bytes()) in as_ref()
697 let hello_world = BStr::from_bytes(b"hello, world!"); in test_bstr_display()
701 let others = BStr::from_bytes(b"\x01"); in test_bstr_display()
703 let non_ascii = BStr::from_bytes(b"d\xe9j\xe0 vu"); in test_bstr_display()
712 let hello_world = BStr::from_bytes(b"hello, world!"); in test_bstr_debug()
716 let others = BStr::from_bytes(b"\x01"); in test_bstr_debug()
[all …]

Completed in 5 milliseconds