pub enum GTFSDirectionId {
Outbound = 0,
Inbound = 1,
}Expand description
Indicates the direction of travel for a trip. This field should not be used in routing; it provides a way to separate trips by direction when publishing time tables. Valid options are:
- 0 - Travel in one direction (e.g. outbound travel).
- 1 - Travel in the opposite direction (e.g. inbound travel).
Example: The trip_headsign and direction_id fields may be used together to assign a name to travel in each direction for a set of trips. A trips.txt file could contain these records for use in time tables:
trip_id,...,trip_headsign,direction_id
1234,...,Airport,0
1505,...,Downtown,1Variants§
Trait Implementations§
Source§impl Clone for GTFSDirectionId
impl Clone for GTFSDirectionId
Source§fn clone(&self) -> GTFSDirectionId
fn clone(&self) -> GTFSDirectionId
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GTFSDirectionId
impl Debug for GTFSDirectionId
Source§impl Default for GTFSDirectionId
impl Default for GTFSDirectionId
Source§fn default() -> GTFSDirectionId
fn default() -> GTFSDirectionId
Returns the “default value” for a type. Read more
Source§impl From<i8> for GTFSDirectionId
impl From<i8> for GTFSDirectionId
Source§impl Hash for GTFSDirectionId
impl Hash for GTFSDirectionId
Source§impl Ord for GTFSDirectionId
impl Ord for GTFSDirectionId
Source§impl PartialEq for GTFSDirectionId
impl PartialEq for GTFSDirectionId
Source§impl PartialOrd for GTFSDirectionId
impl PartialOrd for GTFSDirectionId
impl Copy for GTFSDirectionId
impl Eq for GTFSDirectionId
impl StructuralPartialEq for GTFSDirectionId
Auto Trait Implementations§
impl Freeze for GTFSDirectionId
impl RefUnwindSafe for GTFSDirectionId
impl Send for GTFSDirectionId
impl Sync for GTFSDirectionId
impl Unpin for GTFSDirectionId
impl UnwindSafe for GTFSDirectionId
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().