U256

Type Alias U256 

Source
pub type U256<'a> = Inner<'a, true, 32, 0, 0>;
Expand description

Type alias for a 32-byte slice or owned data (commonly used for cryptographic hashes or IDs) represented using the Inner type with fixed-size configuration.

Aliased Type§

pub enum U256<'a> {}

Trait Implementations§

Source§

impl<'a> Decodable<'a> for U256<'a>

Source§

fn get_structure(_: &[u8]) -> Result<Vec<FieldMarker>, Error>

Defines the expected structure of a type based on binary data. Read more
Source§

fn from_decoded_fields(data: Vec<DecodableField<'a>>) -> Result<Self, Error>

Constructs the type from a vector of decoded fields. Read more
Source§

fn from_bytes(data: &'a mut [u8]) -> Result<Self, Error>

Decodes the type from raw bytes. Read more
Source§

impl Display for U256<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<[u8; 32]> for U256<'_>

Source§

fn from(v: [u8; 32]) -> Self

Converts to this type from the input type.
Source§

impl GetMarker for U256<'_>

Source§

fn get_marker() -> FieldMarker

Defines the structure of a type for decoding purposes, supporting both primitive and structured types. It helps getting a marker for a type.
Source§

impl<'a> TryFrom<DecodableField<'a>> for U256<'a>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: DecodableField<'a>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<EncodableField<'a>> for U256<'a>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: EncodableField<'a>) -> Result<Self, Self::Error>

Performs the conversion.