Home
last modified time | relevance | path

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

/linux/rust/macros/
H A Dfmt.rs20 let first = first.strip_prefix('"')?; in fmt()
35 if let Some(rest) = first_str.strip_prefix('{') { in fmt()
/linux/rust/syn/
H A Dext.rs98 if let Some(string) = string.strip_prefix("r#") { in unraw()
/linux/rust/quote/
H A Dident_fragment.rs54 if let Some(id) = id.strip_prefix("r#") { in fmt()
H A Druntime.rs443 if let Some(id) = id.strip_prefix("r#") { in ident_maybe_raw()
/linux/rust/kernel/
H A Dstr.rs55 pub fn strip_prefix(&self, pattern: impl AsRef<Self>) -> Option<&BStr> { in strip_prefix() method
57 .strip_prefix(pattern.as_ref().deref()) in strip_prefix()