pub struct EmptyString { /* private fields */ }Available on crate features
std or alloc only.Expand description
Similar to EmptyStr, but holds the empty string provided.
Implementations§
Source§impl EmptyString
impl EmptyString
Sourcepub fn from_empty_boxed_str(empty: EmptyBoxedStr) -> Self
pub fn from_empty_boxed_str(empty: EmptyBoxedStr) -> Self
Constructs Self from EmptyBoxedStr.
Sourcepub fn into_empty_boxed_str(self) -> EmptyBoxedStr
pub fn into_empty_boxed_str(self) -> EmptyBoxedStr
Converts Self into EmptyBoxedStr.
Trait Implementations§
Source§impl Debug for EmptyString
impl Debug for EmptyString
Source§impl Display for EmptyString
impl Display for EmptyString
Source§impl Error for EmptyString
impl Error for EmptyString
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for EmptyString
impl RefUnwindSafe for EmptyString
impl Send for EmptyString
impl Sync for EmptyString
impl Unpin for EmptyString
impl UnwindSafe for EmptyString
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more