rocket::mtls::oid::asn1_rs::nom

Trait ExtendInto

Source
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 feature mtls only.
Expand description

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

Required Associated Types§

Source

type Item

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

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

Source

type Extender

The type that will be produced

Required Methods§

Source

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

Create a new Extend of the correct type

Source

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

Accumulate the input into an accumulator

Implementations on Foreign Types§

Source§

impl ExtendInto for &str

Source§

impl ExtendInto for &[u8]

Source§

type Item = u8

Source§

type Extender = Vec<u8>

Source§

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

Source§

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

Source§

impl ExtendInto for char

Source§

impl ExtendInto for str

Source§

impl ExtendInto for [u8]

Source§

type Item = u8

Source§

type Extender = Vec<u8>

Source§

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

Source§

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

Implementors§