Struct Indented
pub(in ::error) struct Indented<'a, D> { pub(in ::error) inner: &'a mut D }
Wrapper type for indenting the inner source.
Fields
inner: &'a mut D
Trait Implementations
impl<T> Write for Indented<'_, T>
where
T: Write,
fn write_str(&mut self, s: &str) -> Result
Auto Trait Implementations
impl<'a, D> !UnwindSafe for Indented<'a, D>
impl<'a, D> Freeze for Indented<'a, D>
where
&'a mut D: Freeze,
impl<'a, D> RefUnwindSafe for Indented<'a, D>
where
&'a mut D: RefUnwindSafe,
impl<'a, D> Send for Indented<'a, D>
where
&'a mut D: Send,
impl<'a, D> Sync for Indented<'a, D>
where
&'a mut D: Sync,
impl<'a, D> Unpin for Indented<'a, D>
where
&'a mut D: Unpin,
impl<'a, D> UnsafeUnpin for Indented<'a, D>
where
&'a mut D: UnsafeUnpin,
Blanket Implementations
impl<T> Any for Indented<'a, D>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Indented<'a, D>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Indented<'a, D>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Indented<'a, D>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Indented<'a, D>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Indented<'a, D>
impl<T, U> Into<U> for Indented<'a, D>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Indented<'a, D>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Indented<'a, D>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>