Skip to main content

Source

Trait Source 

Source
pub trait Source<Scope: Copy = ()> {
    const SECTION_SIZE: Option<usize> = None;

    // Required method
    fn emit<'field, Out: Sink<'field, Scope>>(
        &'field self,
        sink: Out,
    ) -> Result<Out, Out::Error>;
}
Expand description

Borrows and synchronously emits one semantic field plan.

Provided Associated Constants§

Required Methods§

Source

fn emit<'field, Out: Sink<'field, Scope>>( &'field self, sink: Out, ) -> Result<Out, Out::Error>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Source<Application> for ()

Source§

const SECTION_SIZE: Option<usize>

Source§

fn emit<'field, Out: Sink<'field, Application>>( &'field self, sink: Out, ) -> Result<Out, Out::Error>

Source§

impl<'entry, 'value, Scope: Copy> Source<Scope> for Copied<Iter<'entry, Entry<'value, Scope>>>
where 'value: 'entry,

Source§

fn emit<'field, Out: Sink<'field, Scope>>( &'field self, sink: Out, ) -> Result<Out, Out::Error>

Source§

impl<'entry, 'value, Scope: Copy> Source<Scope> for Iter<'entry, Entry<'value, Scope>>
where 'value: 'entry,

Source§

fn emit<'field, Out: Sink<'field, Scope>>( &'field self, sink: Out, ) -> Result<Out, Out::Error>

Source§

impl<D: Fields> Source<Application> for PhantomData<D>

Source§

const SECTION_SIZE: Option<usize>

Source§

fn emit<'field, Out: Sink<'field, Application>>( &'field self, out: Out, ) -> Result<Out, Out::Error>

Source§

impl<Scope: Copy, A: Source<Scope>, B: Source<Scope>> Source<Scope> for (A, B)

Source§

fn emit<'field, Out: Sink<'field, Scope>>( &'field self, sink: Out, ) -> Result<Out, Out::Error>

Source§

impl<Scope: Copy, S: Source<Scope> + ?Sized> Source<Scope> for &S

Source§

const SECTION_SIZE: Option<usize> = S::SECTION_SIZE

Source§

fn emit<'field, Out: Sink<'field, Scope>>( &'field self, sink: Out, ) -> Result<Out, Out::Error>

Source§

impl<Scope: Copy, const N: usize> Source<Scope> for [Entry<'_, Scope>; N]

Source§

fn emit<'field, Out: Sink<'field, Scope>>( &'field self, sink: Out, ) -> Result<Out, Out::Error>

Source§

impl<Scope: Copy> Source<Scope> for Option<Entry<'_, Scope>>

Source§

fn emit<'field, Out: Sink<'field, Scope>>( &'field self, sink: Out, ) -> Result<Out, Out::Error>

Source§

impl<Scope: Copy> Source<Scope> for Vec<Entry<'_, Scope>>

Source§

fn emit<'field, Out: Sink<'field, Scope>>( &'field self, sink: Out, ) -> Result<Out, Out::Error>

Source§

impl<Scope: Copy> Source<Scope> for [Entry<'_, Scope>]

Source§

fn emit<'field, Out: Sink<'field, Scope>>( &'field self, sink: Out, ) -> Result<Out, Out::Error>

Implementors§

Source§

impl<F: Source<Application>, S: Constant> Source for Response<F, PhantomData<fn() -> S>>

Source§

const SECTION_SIZE: Option<usize> = Self::SIZE

Source§

impl<F: Source<Application>> Source for Response<F>

Source§

const SECTION_SIZE: Option<usize> = Self::SIZE

Source§

impl<Scope: Copy> Source<Scope> for Group<'_, Scope>

Source§

impl<Scope: Copy> Source<Scope> for List<'_, Lower<Cow<'_, str>, Scope>>