Skip to main content

PrintableIndex

Trait PrintableIndex 

Source
pub trait PrintableIndex {
    // Required methods
    fn to_string() -> &'static str;
    fn to_possible_strings() -> &'static [&'static str];
}
Expand description

Provides string representations of index types for display and region naming.

Required Methods§

Source

fn to_string() -> &'static str

Returns the canonical string name for this index type.

Source

fn to_possible_strings() -> &'static [&'static str]

Returns all accepted string representations for this index type. Used for parsing and type identification.

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 PrintableIndex for usize

Source§

fn to_string() -> &'static str

Source§

fn to_possible_strings() -> &'static [&'static str]

Implementors§

Source§

impl PrintableIndex for Day1

Source§

impl PrintableIndex for Day3

Source§

impl PrintableIndex for EmptyAddrIndex

Source§

impl PrintableIndex for EmptyOutputIndex

Source§

impl PrintableIndex for Epoch

Source§

impl PrintableIndex for FundedAddrIndex

Source§

impl PrintableIndex for Halving

Source§

impl PrintableIndex for Height

Source§

impl PrintableIndex for Hour1

Source§

impl PrintableIndex for Hour4

Source§

impl PrintableIndex for Hour12

Source§

impl PrintableIndex for Minute10

Source§

impl PrintableIndex for Minute30

Source§

impl PrintableIndex for Month1

Source§

impl PrintableIndex for Month3

Source§

impl PrintableIndex for Month6

Source§

impl PrintableIndex for OpReturnIndex

Source§

impl PrintableIndex for P2AAddrIndex

Source§

impl PrintableIndex for P2MSOutputIndex

Source§

impl PrintableIndex for P2PK33AddrIndex

Source§

impl PrintableIndex for P2PK65AddrIndex

Source§

impl PrintableIndex for P2PKHAddrIndex

Source§

impl PrintableIndex for P2SHAddrIndex

Source§

impl PrintableIndex for P2TRAddrIndex

Source§

impl PrintableIndex for P2WPKHAddrIndex

Source§

impl PrintableIndex for P2WSHAddrIndex

Source§

impl PrintableIndex for StoredBool

Source§

impl PrintableIndex for StoredF32

Source§

impl PrintableIndex for StoredF64

Source§

impl PrintableIndex for StoredI8

Source§

impl PrintableIndex for StoredI16

Source§

impl PrintableIndex for StoredI64

Source§

impl PrintableIndex for StoredString

Source§

impl PrintableIndex for StoredU8

Source§

impl PrintableIndex for StoredU16

Source§

impl PrintableIndex for StoredU32

Source§

impl PrintableIndex for StoredU64

Source§

impl PrintableIndex for TxInIndex

Source§

impl PrintableIndex for TxIndex

Source§

impl PrintableIndex for TxOutIndex

Source§

impl PrintableIndex for UnknownOutputIndex

Source§

impl PrintableIndex for Week1

Source§

impl PrintableIndex for Year1

Source§

impl PrintableIndex for Year10

Source§

impl PrintableIndex for Year