Docs.rs
  • strict_encoding-2.5.0
    • strict_encoding 2.5.0
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • dr-orlovsky
    • Dependencies
      • amplify ^4.0.0 normal
      • half ~2.2.0 normal
      • serde ^1 normal
      • strict_encoding_derive ^2.0.0 normal
      • amplify ^4.0.0 dev
      • rand ^0.8.5 dev
      • strict_encoding_test ^2.0.0-alpha.2 dev
    • Versions
    • 0.22% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

StrictEnum

Provided Methods

  • from_variant_name
  • strict_type_info

Implementors

In strict_encoding

?
Change settings

Trait strict_encoding::StrictEnum

source ·
pub trait StrictEnumwhere
    Self: StrictSum + Copy + TryFrom<u8, Error = VariantError<u8>>,
    u8: From<Self>,{
    // Provided methods
    fn from_variant_name(
        name: &FieldName
    ) -> Result<Self, VariantError<&FieldName>> { ... }
    fn strict_type_info() -> TypeInfo<Self> { ... }
}

Provided Methods§

source

fn from_variant_name(name: &FieldName) -> Result<Self, VariantError<&FieldName>>

source

fn strict_type_info() -> TypeInfo<Self>

Implementors§

source§

impl StrictEnum for Alpha

source§

impl StrictEnum for AlphaCaps

source§

impl StrictEnum for AlphaCapsNum

source§

impl StrictEnum for AlphaNum

source§

impl StrictEnum for AlphaNumDash

source§

impl StrictEnum for AlphaNumLodash

source§

impl StrictEnum for AlphaSmall

source§

impl StrictEnum for Bool

source§

impl StrictEnum for Dec

source§

impl StrictEnum for HexDecCaps

source§

impl StrictEnum for HexDecSmall

source§

impl StrictEnum for U4

source§

impl StrictEnum for U5

source§

impl StrictEnum for AsciiPrintable

source§

impl StrictEnum for AsciiSym