Skip to main content

Show

Trait Show 

Source
pub trait Show: Sized {
    // Required methods
    fn widget() -> Widget;
    fn parse(raw: &str) -> Result<Self, StoreError>;
    fn text(&self) -> String;
}
Expand description

Human presentation of a stored type: widget, parsing, and text.

Required Methods§

Source

fn widget() -> Widget

Input widget for this type.

Source

fn parse(raw: &str) -> Result<Self, StoreError>

Parses raw user input into a Self.

Source

fn text(&self) -> String

Renders this value as display text.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Show for DateTime<Utc>

Source§

impl Show for Decimal

Source§

impl Show for NaiveDate

Source§

impl Show for NaiveTime

Source§

impl Show for String

Source§

impl Show for bool

Source§

impl Show for f64

Source§

impl Show for i8

Source§

impl Show for i16

Source§

impl Show for i32

Source§

impl Show for i64

Source§

impl Show for isize

Source§

impl Show for u8

Source§

impl Show for u16

Source§

impl Show for u32

Source§

impl Show for u64

Source§

impl Show for usize

Implementors§