pub fn encode_date<W>(mut to: W, date: NaiveDate) -> IoResult<usize>
where
    W: Write,
{
    // YYYY(MM(DD)?)?
    write!(to, "{:04}{:02}{:02}", date.year(), date.month(), date.day())?;
    Ok(8)
}
/** Encode a single date in accordance to the DICOM Date (DA)
 * value representation.
 */
Encode a single date in accordance to the DICOM Date (DA)
value representation.
Encode a single date in accordance to the DICOM Date ( DA ) value representation .
pub fn encode_date<W>(mut to: W, date: NaiveDate) -> IoResult<usize>
where
    W: Write,
{
    // YYYY(MM(DD)?)?
    write!(to, "{:04}{:02}{:02}", date.year(), date.month(), date.day())?;
    Ok(8)
}
pub fn encode_date < W > ( mut to : W , date : NaiveDate ) -> IoResult < usize > where W : Write , { // YYYY(MM(DD)?)? write ! ( to " " date year ( ) date month ( ) date day ( ) ) ? ; Ok ( 8 ) }
Encode a single date in accordance to the DICOM Date (DA)
 value representation.
Encode a single date in accordance to the DICOM Date ( DA ) value representation .
to
W
date
NaiveDate
to
W
date
NaiveDate