generic_ec_core

Trait ByteArray

source
pub trait ByteArray:
    AsRef<[u8]>
    + AsMut<[u8]>
    + Clone
    + Send
    + Sync
    + 'static {
    // Required method
    fn zeroes() -> Self;
}
Expand description

Byte array

Required Methods§

source

fn zeroes() -> Self

New byte array of zeroes

Alternative to Default that is not implemented for generic [T; N] (see tracking issue)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<N: ArrayLength<u8>> ByteArray for GenericArray<u8, N>

source§

fn zeroes() -> Self

source§

impl<const N: usize> ByteArray for [u8; N]

source§

fn zeroes() -> Self

Implementors§