devela/text/str/
reexports.rsuse crate::{impl_cdef, reexport};
impl_cdef!["" => &str];
#[cfg(all(not(feature = "safe_text"), feature = "unsafe_str"))]
#[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "unsafe_str")))]
impl crate::ConstDefault for &mut str {
const DEFAULT: Self = unsafe { ::core::str::from_utf8_unchecked_mut(&mut []) };
}
#[cfg(feature = "alloc")]
impl_cdef![Self::new() => String];
pub use crate::CStr;
#[cfg(feature = "alloc")]
pub use crate::CString;
#[cfg(feature = "std")]
crate::items! { pub use crate::{OsStr, OsString}; }
reexport! { rust: core::str,
doc: "Parse a value from a string.",
FromStr
}
reexport! { rust: alloc::string,
doc: "A UTF-8–encoded, growable string.",
String
}
reexport! { rust: alloc::string,
doc: "A trait for converting a value to a [`String`].",
ToString
}