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.

Implementations on Foreign Types§

Source§

impl TransparentAddress for Address

Available on crate feature hopper-native-backend only.

Implementors§

Source§

impl TransparentAddress for hopper_runtime::address::Address