pub enum StrSource<'a> {
Borrowed(&'a str),
Formatted(Arguments<'a>),
}Expand description
text from borrowed strings or formatting arguments
Variants§
Trait Implementations§
impl<'a> Copy for StrSource<'a>
Auto Trait Implementations§
impl<'a> !Send for StrSource<'a>
impl<'a> !Sync for StrSource<'a>
impl<'a> Forget for StrSource<'a>
impl<'a> Freeze for StrSource<'a>
impl<'a> Move for StrSource<'a>
impl<'a> RefUnwindSafe for StrSource<'a>
impl<'a> Unpin for StrSource<'a>
impl<'a> UnsafeUnpin for StrSource<'a>where
&'a str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
*const Argument<'a> is !null: UnsafeUnpin,
impl<'a> UnwindSafe for StrSource<'a>
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