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 DateIndex

Source§

impl PrintableIndex for DecadeIndex

Source§

impl PrintableIndex for DifficultyEpoch

Source§

impl PrintableIndex for EmptyAddressIndex

Source§

impl PrintableIndex for EmptyOutputIndex

Source§

impl PrintableIndex for FundedAddressIndex

Source§

impl PrintableIndex for HalvingEpoch

Source§

impl PrintableIndex for Height

Source§

impl PrintableIndex for MonthIndex

Source§

impl PrintableIndex for OpReturnIndex

Source§

impl PrintableIndex for P2AAddressIndex

Source§

impl PrintableIndex for P2MSOutputIndex

Source§

impl PrintableIndex for P2PK33AddressIndex

Source§

impl PrintableIndex for P2PK65AddressIndex

Source§

impl PrintableIndex for P2PKHAddressIndex

Source§

impl PrintableIndex for P2SHAddressIndex

Source§

impl PrintableIndex for P2TRAddressIndex

Source§

impl PrintableIndex for P2WPKHAddressIndex

Source§

impl PrintableIndex for P2WSHAddressIndex

Source§

impl PrintableIndex for PairOutputIndex

Source§

impl PrintableIndex for QuarterIndex

Source§

impl PrintableIndex for SemesterIndex

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 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 WeekIndex

Source§

impl PrintableIndex for Year

Source§

impl PrintableIndex for YearIndex