Trait osmxq::Record [−][src]
pub trait Record: Send + Sync + Clone + Debug + 'static { fn get_id(&self) -> RecordId; fn get_refs(&self) -> Vec<RecordId>; fn get_position(&self) -> Option<Position>; fn pack(records: &HashMap<RecordId, Self>) -> Vec<u8>
where
Self: Sized; fn unpack(
buf: &[u8],
records: &mut HashMap<RecordId, Self>
) -> Result<usize, Error>; }