Module workflow_core::utils
source · Expand description
buffer slicing and other utilities
Functions
Takes a
&[u8] buffer slice and returns a slice &[T]
with a given number of elements of type TTakes a mutable
&[u8] buffer slice and returns a
mutable slice &[T] with a given number of elements
of type TTakes a reference to a struct of type
T and returns
a raw &[u8] slice with byte length of the type TTruncate a string, optionally appending another string
or appending
"..." if the append string is NoneExtract a substring starting at 0 and truncating it
to
min(length,str.len()).