We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ab3a2 commit a420c3fCopy full SHA for a420c3f
src/lib.rs
@@ -349,6 +349,10 @@ where
349
350
/// A convenience type that can be used in a constant or static.
351
pub type SubstringConst = Substring<&'static [u8]>;
352
+/// A convenience type to save the need to specify that the inner object is a slice.
353
+pub type SubstringRef<'a> = Substring<&'a [u8]>;
354
+/// A convenience type to save the need to specify that the inner object is owned.
355
+pub type SubstringOwned = Substring<Vec<u8>>;
356
357
#[cfg(all(test, feature = "benchmarks"))]
358
mod bench {
0 commit comments