[][src]Trait rdcl_aoc_helpers::input::WithAsRecords

pub trait WithAsRecords {
    pub fn as_records<T: FromStr>(&self) -> Result<Vec<T>, <T as FromStr>::Err>;
}

This trait allows you to easily convert an object to a vec of items of the required type.

Required methods

pub fn as_records<T: FromStr>(&self) -> Result<Vec<T>, <T as FromStr>::Err>[src]

Convert to a list of records of the requested type.

Loading content...

Implementations on Foreign Types

impl<'a> WithAsRecords for Vec<&'a str>[src]

Loading content...

Implementors

Loading content...