Skip to main content

IntoField

Trait IntoField 

Source
pub trait IntoField<'a, S> { }
Expand description

Something section S can interpret as one field.

  • A (name, value) pair, with the value as bytes or text, whose position is its place in the input.
  • A FieldRef, which keeps its own position, such as one from a remainder, and an OwnedField by reference likewise.
  • A StaticTableEntry or FieldName with its value, classified by a static table built for S.

It is implemented only by this crate.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, S: FieldSection<'a>> IntoField<'a, S> for (FieldName<'a, S::Identity>, &'a [u8])

Source§

impl<'a, S: FieldSection<'a>> IntoField<'a, S> for (StaticTableEntry<S::Identity>, &'a [u8])

Source§

impl<'a, S> IntoField<'a, S> for &(&'a str, &'a [u8])

Source§

impl<'a, S> IntoField<'a, S> for (&'a str, &'a [u8])

Source§

impl<'a, S> IntoField<'a, S> for (&'a str, &'a str)

Implementors§

Source§

impl<'a, S> IntoField<'a, S> for &'a OwnedField

Source§

impl<'a, S> IntoField<'a, S> for &FieldRef<'a>

Source§

impl<'a, S> IntoField<'a, S> for FieldRef<'a>