Struct diesel::serialize::Output[][src]

pub struct Output<'a, T, DB> where
    DB: TypeMetadata,
    DB::MetadataLookup: 'a, 
{ /* fields omitted */ }

Wraps a buffer to be written by ToSql with additional backend specific utilities.

Implementations

impl<'a, T, DB: TypeMetadata> Output<'a, T, DB>[src]

pub fn new(out: T, metadata_lookup: &'a DB::MetadataLookup) -> Self[src]

Construct a new Output

pub fn with_buffer<U>(&self, new_out: U) -> Output<'a, U, DB>

Notable traits for Output<'a, T, DB>

impl<'a, T: Write, DB: TypeMetadata> Write for Output<'a, T, DB>
[src]

Create a new Output with the given buffer

pub fn into_inner(self) -> T[src]

Return the raw buffer this type is wrapping

pub fn metadata_lookup(&self) -> &'a DB::MetadataLookup[src]

Returns the backend’s mechanism for dynamically looking up type metadata at runtime, if relevant for the given backend.

Trait Implementations

impl<'a, T: Clone, DB: Clone> Clone for Output<'a, T, DB> where
    DB: TypeMetadata,
    DB::MetadataLookup: 'a,
    DB::MetadataLookup: Clone
[src]

impl<'a, T: Copy, DB: Copy> Copy for Output<'a, T, DB> where
    DB: TypeMetadata,
    DB::MetadataLookup: 'a,
    DB::MetadataLookup: Copy
[src]

impl<'a, T, DB> Debug for Output<'a, T, DB> where
    T: Debug,
    DB: TypeMetadata
[src]

impl<'a, T, DB: TypeMetadata> Deref for Output<'a, T, DB>[src]

type Target = T

The resulting type after dereferencing.

impl<'a, T, DB: TypeMetadata> DerefMut for Output<'a, T, DB>[src]

impl<'a, T, U, DB> PartialEq<U> for Output<'a, T, DB> where
    DB: TypeMetadata,
    T: PartialEq<U>, 
[src]

impl<'a, T: Write, DB: TypeMetadata> Write for Output<'a, T, DB>[src]

Auto Trait Implementations

impl<'a, T, DB> RefUnwindSafe for Output<'a, T, DB> where
    T: RefUnwindSafe,
    <DB as TypeMetadata>::MetadataLookup: RefUnwindSafe

impl<'a, T, DB> Send for Output<'a, T, DB> where
    T: Send,
    <DB as TypeMetadata>::MetadataLookup: Sync

impl<'a, T, DB> Sync for Output<'a, T, DB> where
    T: Sync,
    <DB as TypeMetadata>::MetadataLookup: Sync

impl<'a, T, DB> Unpin for Output<'a, T, DB> where
    T: Unpin

impl<'a, T, DB> UnwindSafe for Output<'a, T, DB> where
    T: UnwindSafe,
    <DB as TypeMetadata>::MetadataLookup: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<W> WriteBytesExt for W where
    W: Write + ?Sized
[src]