pub enum DigestAlgorithm {
Md5,
Sha224,
Sha256,
Sha384,
Sha512,
Blake2s,
Blake2b,
Blake3,
}
Available on crate feature
crypto_expressions
only.Variants§
Implementations§
Source§impl DigestAlgorithm
impl DigestAlgorithm
Sourcepub fn digest_scalar(self, value: Option<&[u8]>) -> ColumnarValue
pub fn digest_scalar(self, value: Option<&[u8]>) -> ColumnarValue
digest an optional string to its hash value, null values are returned as is
Sourcepub fn digest_binary_array<T>(self, value: &dyn Array) -> Result<ColumnarValue>where
T: OffsetSizeTrait,
pub fn digest_binary_array<T>(self, value: &dyn Array) -> Result<ColumnarValue>where
T: OffsetSizeTrait,
digest a binary array to their hash values
Sourcepub fn digest_utf8_array<T>(self, value: &dyn Array) -> Result<ColumnarValue>where
T: OffsetSizeTrait,
pub fn digest_utf8_array<T>(self, value: &dyn Array) -> Result<ColumnarValue>where
T: OffsetSizeTrait,
digest a string array to their hash values
pub fn digest_utf8_array_impl<'a, StringArrType>(
self,
input_value: StringArrType,
) -> ArrayRefwhere
StringArrType: StringArrayType<'a>,
Trait Implementations§
Source§impl Clone for DigestAlgorithm
impl Clone for DigestAlgorithm
Source§fn clone(&self) -> DigestAlgorithm
fn clone(&self) -> DigestAlgorithm
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DigestAlgorithm
impl Debug for DigestAlgorithm
Source§impl Display for DigestAlgorithm
impl Display for DigestAlgorithm
Source§impl FromStr for DigestAlgorithm
impl FromStr for DigestAlgorithm
impl Copy for DigestAlgorithm
Auto Trait Implementations§
impl Freeze for DigestAlgorithm
impl RefUnwindSafe for DigestAlgorithm
impl Send for DigestAlgorithm
impl Sync for DigestAlgorithm
impl Unpin for DigestAlgorithm
impl UnwindSafe for DigestAlgorithm
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