Skip to main content

Capture

Trait Capture 

Source
pub trait Capture<C: Context>: Sealed + Sized {
    type Value;

    const MODE: Mode;

    // Required method
    fn bind(context: C, bytes: Captured<Self>) -> Self::Value;
}
Expand description

The admitted byte domain selected for each array element.

Required Associated Constants§

Required Associated Types§

Required Methods§

Source

fn bind(context: C, bytes: Captured<Self>) -> Self::Value

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Capture<()> for Plain<Shared>

Source§

const MODE: Mode = Mode::Plain

Source§

type Value = Plain<Shared>

Source§

impl Capture<()> for Raw<Shared>

Source§

const MODE: Mode = Mode::Raw

Source§

type Value = Raw<Shared>

Source§

impl Capture<()> for Text<Shared>

Source§

const MODE: Mode = Mode::Frame

Source§

type Value = Text<Shared>

Source§

impl<'d> Capture<Id<'d>> for Plain<Shared>

Source§

const MODE: Mode = Mode::Plain

Source§

type Value = Plain<Bytes<'d>>

Source§

impl<'d> Capture<Id<'d>> for Raw<Shared>

Source§

const MODE: Mode = Mode::Raw

Source§

type Value = Raw<Bytes<'d>>

Source§

impl<'d> Capture<Id<'d>> for Text<Shared>

Source§

const MODE: Mode = Mode::Frame

Source§

type Value = Text<Bytes<'d>>