[][src]Trait cranky::Record

pub trait Record: Sized + Display {
    fn parse_record(
        record_line: &str,
        record_factory: Option<&mut StringIdFactory>
    ) -> Result<Self, Error>; }

Result or judgement record.

Required methods

fn parse_record(
    record_line: &str,
    record_factory: Option<&mut StringIdFactory>
) -> Result<Self, Error>

Parses record from a line of text. record_factory is optionally used for reusing string-based IDs; in case of its absense, all strings will be copied to the record.

Loading content...

Implementors

impl Record for JudgementRecord[src]

impl Record for ResultRecord[src]

Loading content...