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§
Sourcefn to_datestr(&self) -> DateStr
fn to_datestr(&self) -> DateStr
This function creates a crate::DateStr in a to_string() fashion
Sourcefn try_to_datestr(&self) -> Result<DateStr, DateErrors>
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
impl Into<DateStr> for str
Implementation of ToDateStr for &str
fn to_datestr(&self) -> DateStr
fn try_to_datestr(&self) -> Result<DateStr, DateErrors>
Source§impl Into<DateStr> for String
Implementation of ToDateStr for String
impl Into<DateStr> for String
Implementation of ToDateStr for String