SpanU8IntoByteArray
Implementation for converting a Span to a ByteArray
This conversion creates a new ByteArray by iterating through each byte in the span and appending it to the ByteArray. This is useful for converting byte spans to the more efficient ByteArray representation.
Arguments
self- The Span to convert to ByteArray
Returns
ByteArray- A new ByteArray containing all bytes from the input span
Fully qualified path: alexandria_bytes::byte_array_ext::SpanU8IntoByteArray
pub impl SpanU8IntoByteArray of Into<Span<u8>, ByteArray>;
Impl functions
into
Fully qualified path: alexandria_bytes::byte_array_ext::SpanU8IntoByteArray::into
fn into(self: Span<u8>) -> ByteArray