pub struct IndentedSkipIntial<'i, T: Display> {
pub item: T,
pub indent: &'i str,
}
Expand description
Fields§
§item: T
The item to indent.
indent: &'i str
The indentation to insert before each non-empty line.
Trait Implementations§
Source§impl<'i, T: Clone + Display> Clone for IndentedSkipIntial<'i, T>
impl<'i, T: Clone + Display> Clone for IndentedSkipIntial<'i, T>
Source§fn clone(&self) -> IndentedSkipIntial<'i, T>
fn clone(&self) -> IndentedSkipIntial<'i, T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Display> Display for IndentedSkipIntial<'_, T>
impl<T: Display> Display for IndentedSkipIntial<'_, T>
impl<'i, T: Copy + Display> Copy for IndentedSkipIntial<'i, T>
Auto Trait Implementations§
impl<'i, T> Freeze for IndentedSkipIntial<'i, T>where
T: Freeze,
impl<'i, T> RefUnwindSafe for IndentedSkipIntial<'i, T>where
T: RefUnwindSafe,
impl<'i, T> Send for IndentedSkipIntial<'i, T>where
T: Send,
impl<'i, T> Sync for IndentedSkipIntial<'i, T>where
T: Sync,
impl<'i, T> Unpin for IndentedSkipIntial<'i, T>where
T: Unpin,
impl<'i, T> UnwindSafe for IndentedSkipIntial<'i, T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)