Trait elephantry::FromText

source ·
pub trait FromText: Sized {
    // Required method
    fn from_text(raw: &str) -> Result<Self>;

    // Provided method
    fn error(raw: &str) -> Error { ... }
}

Required Methods§

source

fn from_text(raw: &str) -> Result<Self>

Provided Methods§

source

fn error(raw: &str) -> Error

Object Safety§

This trait is not object safe.

Implementors§

source§

impl FromText for elephantry::inspect::constraint::Type

Available on crate feature inspect only.
source§

impl FromText for Kind

Available on crate feature inspect only.
source§

impl FromText for Persistence

Available on crate feature inspect only.
source§

impl FromText for elephantry::inspect::Type

Available on crate feature inspect only.