Trait FixedExternalSize

Source
pub trait FixedExternalSize: Sized {
    const SIZE: usize;
}
Expand description

A type with fixed size of external representation.

Required Associated Constants§

Source

const SIZE: usize

Size of an external representation of Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FixedExternalSize for ()

Source§

const SIZE: usize = 0usize

Source§

impl FixedExternalSize for DLogProof

Source§

const SIZE: usize = 65usize

Source§

impl<const N: usize> FixedExternalSize for ByteArray<N>

Source§

const SIZE: usize = N

Implementors§