pub struct RailStation(/* private fields */);Implementations§
Source§impl RailStation
impl RailStation
pub fn codes(self, gd: &GD) -> Result<Vec<String>>
pub fn company(self, gd: &GD) -> Result<RailCompany>
pub fn name(self, gd: &GD) -> Result<Option<String>>
pub fn platforms(self, gd: &GD) -> Result<Vec<RailPlatform>>
pub fn connections_from_here(self, gd: &GD) -> Result<Vec<RailConnection>>
pub fn connections_to_here(self, gd: &GD) -> Result<Vec<RailConnection>>
pub fn lines(self, gd: &GD) -> Result<Vec<RailLine>>
Trait Implementations§
Source§impl Clone for RailStation
impl Clone for RailStation
Source§fn clone(&self) -> RailStation
fn clone(&self) -> RailStation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RailStation
impl Debug for RailStation
Source§impl From<RailStation> for AnyLocatedNode
impl From<RailStation> for AnyLocatedNode
Source§fn from(v: RailStation) -> AnyLocatedNode
fn from(v: RailStation) -> AnyLocatedNode
Converts to this type from the input type.
Source§impl From<RailStation> for AnyNode
impl From<RailStation> for AnyNode
Source§fn from(v: RailStation) -> AnyNode
fn from(v: RailStation) -> AnyNode
Converts to this type from the input type.
Source§impl From<u32> for RailStation
impl From<u32> for RailStation
Source§impl FromSql for RailStation
impl FromSql for RailStation
Source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
Source§impl LocatedNode for RailStation
impl LocatedNode for RailStation
Source§impl PartialEq for RailStation
impl PartialEq for RailStation
Source§impl TryInto<RailStation> for AnyLocatedNode
impl TryInto<RailStation> for AnyLocatedNode
Source§impl TryInto<RailStation> for AnyNode
impl TryInto<RailStation> for AnyNode
impl Copy for RailStation
impl Eq for RailStation
impl StructuralPartialEq for RailStation
Auto Trait Implementations§
impl Freeze for RailStation
impl RefUnwindSafe for RailStation
impl Send for RailStation
impl Sync for RailStation
impl Unpin for RailStation
impl UnsafeUnpin for RailStation
impl UnwindSafe for RailStation
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more