pub struct RailPlatform(/* private fields */);Implementations§
Source§impl RailPlatform
impl RailPlatform
pub fn code(self, gd: &GD) -> Result<Option<String>>
pub fn station(self, gd: &GD) -> Result<RailStation>
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 RailPlatform
impl Clone for RailPlatform
Source§fn clone(&self) -> RailPlatform
fn clone(&self) -> RailPlatform
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 RailPlatform
impl Debug for RailPlatform
Source§impl From<RailPlatform> for AnyNode
impl From<RailPlatform> for AnyNode
Source§fn from(v: RailPlatform) -> AnyNode
fn from(v: RailPlatform) -> AnyNode
Converts to this type from the input type.
Source§impl From<u32> for RailPlatform
impl From<u32> for RailPlatform
Source§impl FromSql for RailPlatform
impl FromSql for RailPlatform
Source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
Source§impl PartialEq for RailPlatform
impl PartialEq for RailPlatform
Source§impl TryInto<RailPlatform> for AnyNode
impl TryInto<RailPlatform> for AnyNode
impl Copy for RailPlatform
impl Eq for RailPlatform
impl StructuralPartialEq for RailPlatform
Auto Trait Implementations§
impl Freeze for RailPlatform
impl RefUnwindSafe for RailPlatform
impl Send for RailPlatform
impl Sync for RailPlatform
impl Unpin for RailPlatform
impl UnwindSafe for RailPlatform
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