pub struct StationReader { /* private fields */ }Implementations§
Source§impl StationReader
impl StationReader
pub fn new() -> Self
pub fn with_skip_headers(skip_headers: bool) -> Self
Sourcepub fn read_stations(&self, path: &Path) -> Result<Vec<StationMetadata>>
pub fn read_stations(&self, path: &Path) -> Result<Vec<StationMetadata>>
Read station metadata from the stations.txt file
Sourcepub fn read_stations_map(
&self,
path: &Path,
) -> Result<HashMap<u32, StationMetadata>>
pub fn read_stations_map( &self, path: &Path, ) -> Result<HashMap<u32, StationMetadata>>
Read station metadata from a map of station IDs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StationReader
impl RefUnwindSafe for StationReader
impl Send for StationReader
impl Sync for StationReader
impl Unpin for StationReader
impl UnwindSafe for StationReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more