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.
Methods
impl<'a, T, DB: TypeMetadata> Output<'a, T, DB>[src]
impl<'a, T, DB: TypeMetadata> Output<'a, T, DB>pub fn new(out: T, metadata_lookup: &'a DB::MetadataLookup) -> Self[src]
pub fn new(out: T, metadata_lookup: &'a DB::MetadataLookup) -> SelfConstruct a new Output
ⓘImportant traits for Output<'a, T, DB>pub fn with_buffer<U>(&self, new_out: U) -> Output<'a, U, DB>[src]
pub fn with_buffer<U>(&self, new_out: U) -> Output<'a, U, DB>Create a new Output with the given buffer
pub fn into_inner(self) -> T[src]
pub fn into_inner(self) -> TReturn the raw buffer this type is wrapping
pub fn metadata_lookup(&self) -> &'a DB::MetadataLookup[src]
pub fn metadata_lookup(&self) -> &'a DB::MetadataLookupReturns 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: Clone, DB: Clone> Clone for Output<'a, T, DB> where
DB: TypeMetadata,
DB::MetadataLookup: 'a,
DB::MetadataLookup: Clone, ⓘImportant traits for Output<'a, T, DB>fn clone(&self) -> Output<'a, T, DB>[src]
fn clone(&self) -> Output<'a, T, DB>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
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: Copy, DB: Copy> Copy for Output<'a, T, DB> where
DB: TypeMetadata,
DB::MetadataLookup: 'a,
DB::MetadataLookup: Copy, impl<'a, T: Write, DB: TypeMetadata> Write for Output<'a, T, DB>[src]
impl<'a, T: Write, DB: TypeMetadata> Write for Output<'a, T, DB>fn write(&mut self, buf: &[u8]) -> Result<usize>[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>[src]
fn flush(&mut self) -> Result<()>Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<()>[src]
fn write_all(&mut self, buf: &[u8]) -> Result<()>Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<()>[src]
fn write_fmt(&mut self, fmt: Arguments) -> Result<()>Writes a formatted string into this writer, returning any error encountered. Read more
fn by_ref(&mut self) -> &mut Self1.0.0[src]
fn by_ref(&mut self) -> &mut SelfCreates a "by reference" adaptor for this instance of Write. Read more
impl<'a, T, DB: TypeMetadata> Deref for Output<'a, T, DB>[src]
impl<'a, T, DB: TypeMetadata> Deref for Output<'a, T, DB>type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
fn deref(&self) -> &Self::TargetDereferences the value.
impl<'a, T, DB: TypeMetadata> DerefMut for Output<'a, T, DB>[src]
impl<'a, T, DB: TypeMetadata> DerefMut for Output<'a, T, DB>impl<'a, T, U, DB> PartialEq<U> for Output<'a, T, DB> where
DB: TypeMetadata,
T: PartialEq<U>, [src]
impl<'a, T, U, DB> PartialEq<U> for Output<'a, T, DB> where
DB: TypeMetadata,
T: PartialEq<U>, fn eq(&self, rhs: &U) -> bool[src]
fn eq(&self, rhs: &U) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, T, DB> Debug for Output<'a, T, DB> where
T: Debug,
DB: TypeMetadata, [src]
impl<'a, T, DB> Debug for Output<'a, T, DB> where
T: Debug,
DB: TypeMetadata, Auto Trait Implementations
impl<'a, T, DB> Send for Output<'a, T, DB> where
T: Send,
<DB as TypeMetadata>::MetadataLookup: Sync,
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> Sync for Output<'a, T, DB> where
T: Sync,
<DB as TypeMetadata>::MetadataLookup: Sync,