pub struct EmptyBoxedStr { /* private fields */ }Available on crate features
std or alloc only.Expand description
Similar to EmptyString, but contains the empty boxed string provided.
Implementations§
Source§impl EmptyBoxedStr
impl EmptyBoxedStr
Sourcepub fn from_empty_string(empty: EmptyString) -> Self
pub fn from_empty_string(empty: EmptyString) -> Self
Constructs Self from EmptyString.
Sourcepub fn into_empty_string(self) -> EmptyString
pub fn into_empty_string(self) -> EmptyString
Converts Self into EmptyString.
Trait Implementations§
Source§impl Debug for EmptyBoxedStr
impl Debug for EmptyBoxedStr
Source§impl Display for EmptyBoxedStr
impl Display for EmptyBoxedStr
Source§impl Error for EmptyBoxedStr
impl Error for EmptyBoxedStr
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 EmptyBoxedStr
impl RefUnwindSafe for EmptyBoxedStr
impl Send for EmptyBoxedStr
impl Sync for EmptyBoxedStr
impl Unpin for EmptyBoxedStr
impl UnwindSafe for EmptyBoxedStr
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