pub struct Utf8Scalar<'a> { /* private fields */ }Implementations§
Source§impl<'a> Utf8Scalar<'a>
impl<'a> Utf8Scalar<'a>
pub fn from_scalar_value( dtype: &'a DType, value: ScalarValue, ) -> VortexResult<Self>
pub fn dtype(&self) -> &'a DType
pub fn value(&self) -> Option<BufferString>
Sourcepub fn upper_bound(self, max_length: usize) -> Option<Self>
pub fn upper_bound(self, max_length: usize) -> Option<Self>
Construct a value at most max_length in size that’s greater than ourselves.
Will return None if constructing greater value overflows
Sourcepub fn lower_bound(self, max_length: usize) -> Self
pub fn lower_bound(self, max_length: usize) -> Self
Construct a value at most max_length in size that’s less than ourselves.
Sourcepub fn is_empty(&self) -> Option<bool>
pub fn is_empty(&self) -> Option<bool>
Returns whether its value is non-null and empty, otherwise None.
Sourcepub fn into_value(self) -> ScalarValue
pub fn into_value(self) -> ScalarValue
Convert typed scalar into ScalarValue
Trait Implementations§
Source§impl<'a> Debug for Utf8Scalar<'a>
impl<'a> Debug for Utf8Scalar<'a>
Source§impl Display for Utf8Scalar<'_>
impl Display for Utf8Scalar<'_>
Source§impl<'a> Hash for Utf8Scalar<'a>
impl<'a> Hash for Utf8Scalar<'a>
Source§impl Ord for Utf8Scalar<'_>
impl Ord for Utf8Scalar<'_>
Source§impl PartialEq for Utf8Scalar<'_>
impl PartialEq for Utf8Scalar<'_>
Source§impl PartialOrd for Utf8Scalar<'_>
impl PartialOrd for Utf8Scalar<'_>
Source§impl<'a> TryFrom<&'a Scalar> for Utf8Scalar<'a>
impl<'a> TryFrom<&'a Scalar> for Utf8Scalar<'a>
impl Eq for Utf8Scalar<'_>
Auto Trait Implementations§
impl<'a> Freeze for Utf8Scalar<'a>
impl<'a> RefUnwindSafe for Utf8Scalar<'a>
impl<'a> Send for Utf8Scalar<'a>
impl<'a> Sync for Utf8Scalar<'a>
impl<'a> Unpin for Utf8Scalar<'a>
impl<'a> UnwindSafe for Utf8Scalar<'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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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