ActrTypeExt

Trait ActrTypeExt 

Source
pub trait ActrTypeExt: Sized {
    // Required methods
    fn to_string_repr(&self) -> String;
    fn from_string_repr(s: &str) -> Result<Self, ActrError>;
}
Expand description

Helpers for ActrType string conversions

Required Methods§

Source

fn to_string_repr(&self) -> String

Convert to stable string representation: “+”.

Source

fn from_string_repr(s: &str) -> Result<Self, ActrError>

Parse from string representation. Performs validation on both parts.

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.

Implementors§