Skip to main content

Target

Trait Target 

Source
pub trait Target {
    type Finished;

    // Required methods
    fn as_mut_string(&mut self) -> &mut String;
    fn finish(self) -> Self::Finished;
}

Required Associated Types§

Required Methods§

Source

fn as_mut_string(&mut self) -> &mut String

Source

fn finish(self) -> Self::Finished

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Target for String

Source§

type Finished = String

Source§

fn as_mut_string(&mut self) -> &mut String

Source§

fn finish(self) -> Self

Source§

impl<'a> Target for &'a mut String

Source§

type Finished = &'a mut String

Source§

fn as_mut_string(&mut self) -> &mut String

Source§

fn finish(self) -> Self

Implementors§