Struct indent_write::indentable::IndentedSkipIntial [−][src]
Wrapper struct that indents the Display
representation of an item. When
printed with Display
, it will insert indent
before
each non-empty line after the first of the underlying
item
’s Display
output.
Created with Indentable::indented
; see its documentation for an example.
Fields
item: T
The item to indent.
indent: &'i str
The indentation to insert before each non-empty line.
Trait Implementations
impl<'i, T: Clone + Display> Clone for IndentedSkipIntial<'i, T>
[src]
fn clone(&self) -> IndentedSkipIntial<'i, T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'i, T: Copy + Display> Copy for IndentedSkipIntial<'i, T>
[src]
impl<'i, T: Debug + Display> Debug for IndentedSkipIntial<'i, T>
[src]
impl<T: Display> Display for IndentedSkipIntial<'_, T>
[src]
Auto Trait Implementations
impl<'i, T> RefUnwindSafe for IndentedSkipIntial<'i, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'i, T> Send for IndentedSkipIntial<'i, T> where
T: Send,
T: Send,
impl<'i, T> Sync for IndentedSkipIntial<'i, T> where
T: Sync,
T: Sync,
impl<'i, T> Unpin for IndentedSkipIntial<'i, T> where
T: Unpin,
T: Unpin,
impl<'i, T> UnwindSafe for IndentedSkipIntial<'i, T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Indentable for T where
T: Display,
[src]
T: Display,
#[must_use = "Indentables do nothing unless used"]fn indented(self, indent: &str) -> Indented<'_, Self>
[src]
#[must_use = "Indentables do nothing unless used"]
fn indented(self, indent: &str) -> Indented<'_, Self>#[must_use = "Indentables do nothing unless used"]fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
[src]
#[must_use = "Indentables do nothing unless used"]
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,