pub struct NCharView {
pub is_chars: UnsafeCell<bool>,
/* private fields */
}
Fields§
§is_chars: UnsafeCell<bool>
Implementations§
Source§impl NCharView
impl NCharView
pub fn len(&self) -> usize
Sourcepub unsafe fn is_null_unchecked(&self, row: usize) -> bool
pub unsafe fn is_null_unchecked(&self, row: usize) -> bool
Unsafe version for [methods.is_null]
pub unsafe fn nchar_to_utf8(&self)
Sourcepub unsafe fn get_inline_str_unchecked(&self, row: usize) -> Option<&InlineStr>
pub unsafe fn get_inline_str_unchecked(&self, row: usize) -> Option<&InlineStr>
Get UTF-8 string at row
.
In this method, InlineNChar will directly converted to InlineStr, which means v3 raw block will be changed in-place.
pub unsafe fn get_length_unchecked(&self, row: usize) -> Option<usize>
pub fn lengths(&self) -> Vec<Option<usize>>
pub fn max_length(&self) -> usize
Sourcepub unsafe fn get_unchecked(&self, row: usize) -> Option<&str>
pub unsafe fn get_unchecked(&self, row: usize) -> Option<&str>
Get UTF-8 string at row
.
pub unsafe fn get_value_unchecked(&self, row: usize) -> BorrowedValue<'_>
pub unsafe fn get_raw_value_unchecked( &self, row: usize, ) -> (Ty, u32, *const c_void)
pub fn slice(&self, range: Range<usize>) -> Option<Self>
pub fn from_iter<S: AsRef<str>, T: Into<Option<S>>, I: ExactSizeIterator<Item = T>, V: IntoIterator<Item = T, IntoIter = I>>( iter: V, ) -> Self
pub fn concat(&self, rhs: &Self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for NCharView
impl !RefUnwindSafe for NCharView
impl !Send for NCharView
impl !Sync for NCharView
impl Unpin for NCharView
impl !UnwindSafe for NCharView
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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