ExtendInto

Trait ExtendInto 

pub trait ExtendInto {
    type Item;
    type Extender;

    // Required methods
    fn new_builder(&self) -> Self::Extender;
    fn extend_into(&self, acc: &mut Self::Extender);
}
Available on (crate features rustls or boring or acme) and crate feature rustls only.
Expand description

Abstracts something which can extend an Extend. Used to build modified input slices in escaped_transform

Required Associated Types§

type Item

The current input type is a sequence of that Item type.

Example: u8 for &[u8] or char for &str

type Extender

The type that will be produced

Required Methods§

fn new_builder(&self) -> Self::Extender

Create a new Extend of the correct type

fn extend_into(&self, acc: &mut Self::Extender)

Accumulate the input into an accumulator

Implementations on Foreign Types§

§

impl ExtendInto for &str

Available on crate feature alloc only.
§

type Item = char

§

type Extender = String

§

fn new_builder(&self) -> String

§

fn extend_into(&self, acc: &mut String)

§

impl ExtendInto for &[u8]

Available on crate feature alloc only.
§

type Item = u8

§

type Extender = Vec<u8>

§

fn new_builder(&self) -> Vec<u8>

§

fn extend_into(&self, acc: &mut Vec<u8>)

§

impl ExtendInto for char

Available on crate feature alloc only.
§

type Item = char

§

type Extender = String

§

fn new_builder(&self) -> String

§

fn extend_into(&self, acc: &mut String)

§

impl ExtendInto for str

Available on crate feature alloc only.
§

type Item = char

§

type Extender = String

§

fn new_builder(&self) -> String

§

fn extend_into(&self, acc: &mut String)

§

impl ExtendInto for [u8]

Available on crate feature alloc only.
§

type Item = u8

§

type Extender = Vec<u8>

§

fn new_builder(&self) -> Vec<u8>

§

fn extend_into(&self, acc: &mut Vec<u8>)

Implementors§