osm-io 0.3.0

Read and write OSM data
Documentation
use std::path::PathBuf;

#[derive(Debug)]
pub struct BlobDesc {
    path: PathBuf,
    index: usize,
    start: u64,
    length: u64,
    t: String,
}

impl BlobDesc {
    pub(crate) fn new(path: PathBuf, index: usize, start: u64, length: u64, t: String) -> BlobDesc {
        BlobDesc {
            path,
            index,
            start,
            length,
            t,
        }
    }

    pub fn path(&self) -> PathBuf {
        self.path.clone()
    }

    pub fn index(&self) -> usize {
        self.index
    }

    pub fn start(&self) -> u64 {
        self.start
    }

    pub fn length(&self) -> u64 {
        self.length
    }

    pub fn t(&self) -> String {
        self.t.clone()
    }
}