[][src]Struct lazy_string_replace::ReplaceWriter

pub struct ReplaceWriter<'a, W, R> { /* fields omitted */ }

A wrapper around a fmt::Write that does string replacement on anything that is written to it before passing it to the underlying writer.

Methods

impl<'a, W, R> ReplaceWriter<'a, W, R> where
    W: Write,
    R: Display
[src]

pub fn new(writer: W, needle: &'a str, replacement: R) -> Self[src]

Create a new instance of this type

Trait Implementations

impl<'a, W, R> Write for ReplaceWriter<'a, W, R> where
    W: Write,
    R: Display
[src]

Auto Trait Implementations

impl<'a, W, R> Send for ReplaceWriter<'a, W, R> where
    R: Send,
    W: Send

impl<'a, W, R> Unpin for ReplaceWriter<'a, W, R> where
    R: Unpin,
    W: Unpin

impl<'a, W, R> Sync for ReplaceWriter<'a, W, R> where
    R: Sync,
    W: Sync

impl<'a, W, R> UnwindSafe for ReplaceWriter<'a, W, R> where
    R: UnwindSafe,
    W: UnwindSafe

impl<'a, W, R> RefUnwindSafe for ReplaceWriter<'a, W, R> where
    R: RefUnwindSafe,
    W: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]