Trait Into

Source
pub trait Into<DateStr> {
    // Required methods
    fn to_datestr(&self) -> DateStr;
    fn try_to_datestr(&self) -> Result<DateStr, DateErrors>;
}
Expand description

Trait for easy DateStr making

Blank implementation

Required Methods§

Source

fn to_datestr(&self) -> DateStr

This function creates a crate::DateStr in a to_string() fashion

Source

fn try_to_datestr(&self) -> Result<DateStr, DateErrors>

Try to convert to DateStr using crate::DateStr::try_from_iso_str function, which returns a Result enum.

Implementations on Foreign Types§

Source§

impl Into<DateStr> for str

Implementation of ToDateStr for &str

Source§

impl Into<DateStr> for String

Implementation of ToDateStr for String

Implementors§