We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f795e8a commit 137a31dCopy full SHA for 137a31d
src/libstd/ffi/os_str.rs
@@ -615,6 +615,7 @@ impl OsStr {
615
/// assert!(!os_str.is_empty());
616
/// ```
617
#[stable(feature = "osstring_simple_functions", since = "1.9.0")]
618
+ #[inline]
619
pub fn is_empty(&self) -> bool {
620
self.inner.inner.is_empty()
621
}
src/libstd/sys_common/os_str_bytes.rs
@@ -104,6 +104,7 @@ impl Buf {
104
self.inner.shrink_to(min_capacity)
105
106
107
108
pub fn as_slice(&self) -> &Slice {
109
unsafe { mem::transmute(&*self.inner) }
110
0 commit comments