[−][src]Struct clickhouse_rs::types::Block
Represents Clickhouse Block
Methods
impl Block[src]
pub fn new() -> Self[src]
Constructs a new, empty Block.
pub fn row_count(&self) -> usize[src]
Return the number of rows in the current block.
pub fn column_count(&self) -> usize[src]
Return the number of columns in the current block.
pub fn columns(&self) -> &[Column][src]
This method returns a slice of columns.
pub fn get<'a, T, I>(&'a self, row: usize, col: I) -> Result<T, Error> where
T: FromSql<'a>,
I: ColumnIdx + Copy, [src]
T: FromSql<'a>,
I: ColumnIdx + Copy,
Get the value of a particular cell of the block.
pub fn add_column<S>(self, name: &str, values: S) -> Self where
S: ColumnFrom, [src]
S: ColumnFrom,
Add new column into this block
pub fn is_empty(&self) -> bool[src]
Returns true if the block contains no elements.
ⓘImportant traits for Rows<'a>pub fn rows(&self) -> Rows[src]
ⓘImportant traits for Rows<'a>
This method returns a iterator of rows.
Trait Implementations
impl Clone for Block[src]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl AsRef<Block> for Block[src]
impl Default for Block[src]
impl PartialEq<Block> for Block[src]
fn eq(&self, other: &Self) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Debug for Block[src]
Auto Trait Implementations
impl Sync for Block
impl Send for Block
impl Unpin for Block
impl !RefUnwindSafe for Block
impl !UnwindSafe for Block
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,