pub struct Surround<T, Prefix = Empty, Suffix = Empty> {
pub item: T,
pub prefix: Prefix,
pub suffix: Suffix,
}Expand description
Helper for [Literator::surround_each()].
Fields§
§item: TItem implementing a formatting trait.
prefix: PrefixDisplayable prefix.
suffix: SuffixDisplayable suffix.
Trait Implementations§
Auto Trait Implementations§
impl<T, Prefix, Suffix> Freeze for Surround<T, Prefix, Suffix>
impl<T, Prefix, Suffix> RefUnwindSafe for Surround<T, Prefix, Suffix>
impl<T, Prefix, Suffix> Send for Surround<T, Prefix, Suffix>
impl<T, Prefix, Suffix> Sync for Surround<T, Prefix, Suffix>
impl<T, Prefix, Suffix> Unpin for Surround<T, Prefix, Suffix>
impl<T, Prefix, Suffix> UnsafeUnpin for Surround<T, Prefix, Suffix>
impl<T, Prefix, Suffix> UnwindSafe for Surround<T, Prefix, Suffix>
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