pub struct PrettyBlock<'a> { /* private fields */ }
Methods from Deref<Target = RawBlock>§
pub fn group_id(&self) -> u64
pub fn table_name(&self) -> Option<&str>
pub fn tmq_db_name(&self) -> Option<&str>
pub fn schemas(&self) -> &[ColSchema]
Sourcepub fn field_names(&self) -> &[String]
pub fn field_names(&self) -> &[String]
Get field names.
Sourcepub fn columns(&self) -> Iter<'_, ColumnView>
pub fn columns(&self) -> Iter<'_, ColumnView>
Data view in columns.
pub fn column_views(&self) -> &[ColumnView]
pub fn deserialize<'de, 'a: 'de, T>(
&'a self,
) -> Map<RowsIter<'_>, fn(RowView<'a>) -> Result<T, Error>>where
T: Deserialize<'de>,
pub fn as_raw_bytes(&self) -> &[u8] ⓘ
pub fn is_null(&self, row: usize, col: usize) -> bool
Sourcepub unsafe fn get_raw_value_unchecked(
&self,
row: usize,
col: usize,
) -> (Ty, u32, *const c_void)
pub unsafe fn get_raw_value_unchecked( &self, row: usize, col: usize, ) -> (Ty, u32, *const c_void)
pub fn get_ref(&self, row: usize, col: usize) -> Option<BorrowedValue<'_>>
Sourcepub unsafe fn get_ref_unchecked(
&self,
row: usize,
col: usize,
) -> BorrowedValue<'_>
pub unsafe fn get_ref_unchecked( &self, row: usize, col: usize, ) -> BorrowedValue<'_>
Get one value at (row, col)
of the block.
§Safety
Ensure that row
and col
not exceed the limit of the block.
pub fn to_values(&self) -> Vec<Vec<Value>>
pub fn write<W: Write>(&self, _wtr: W) -> Result<usize>
pub fn fields(&self) -> Vec<Field>
pub fn pretty_format(&self) -> PrettyBlock<'_>
pub fn to_create(&self) -> Option<MetaCreate>
Sourcepub fn cast_precision(&self, precision: Precision) -> Self
pub fn cast_precision(&self, precision: Precision) -> Self
Cast the block into a new block with new precision.
Trait Implementations§
Source§impl<'a> Display for PrettyBlock<'a>
impl<'a> Display for PrettyBlock<'a>
Auto Trait Implementations§
impl<'a> Freeze for PrettyBlock<'a>
impl<'a> !RefUnwindSafe for PrettyBlock<'a>
impl<'a> Send for PrettyBlock<'a>
impl<'a> Sync for PrettyBlock<'a>
impl<'a> Unpin for PrettyBlock<'a>
impl<'a> !UnwindSafe for PrettyBlock<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more