Skip to main content

TransparentAddress

Trait TransparentAddress 

Source
pub unsafe trait TransparentAddress: Sized { }
Expand description

Marker trait for types that are #[repr(transparent)] over [u8; 32].

§Safety

Implementors must be #[repr(transparent)] wrappers around [u8; 32] with no additional invariants. This enables zero-cost reference casts.

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.

Implementors§

Source§

impl TransparentAddress for hopper::prelude::Address

Source§

impl TransparentAddress for hopper::substrate::NativeAddress

Available on crate feature hopper-native-backend only.