Struct block_tools::db::use_diesel::serialize::Output[][src]

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

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

Implementations

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

pub fn new(
    out: T,
    metadata_lookup: &'a <DB as TypeMetadata>::MetadataLookup
) -> Output<'a, T, DB>

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

impl<'a, T, DB> Write for Output<'a, T, DB> where
    DB: TypeMetadata,
    T: Write
[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, DB> Write for Output<'a, T, DB> where
    DB: TypeMetadata,
    T: Write
[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 as TypeMetadata>::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, DB> Clone for Output<'a, T, DB> where
    DB: Clone + TypeMetadata,
    T: Clone,
    <DB as TypeMetadata>::MetadataLookup: 'a,
    <DB as TypeMetadata>::MetadataLookup: Clone
[src]

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

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

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

type Target = T

The resulting type after dereferencing.

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

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

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

Auto Trait Implementations

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

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

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

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

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

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