We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Arguments::as_statically_known_str
1 parent 5337252 commit cfcc47eCopy full SHA for cfcc47e
library/core/src/fmt/mod.rs
@@ -743,6 +743,7 @@ impl<'a> Arguments<'a> {
743
#[unstable(feature = "fmt_internals", reason = "internal to standard library", issue = "none")]
744
#[must_use]
745
#[inline]
746
+ #[doc(hidden)]
747
pub fn as_statically_known_str(&self) -> Option<&'static str> {
748
let s = self.as_str();
749
if core::intrinsics::is_val_statically_known(s.is_some()) { s } else { None }
0 commit comments