pub struct RailLine(/* private fields */);Implementations§
Source§impl RailLine
impl RailLine
pub fn code(self, gd: &GD) -> Result<String>
pub fn company(self, gd: &GD) -> Result<RailCompany>
pub fn name(self, gd: &GD) -> Result<Option<String>>
pub fn colour(self, gd: &GD) -> Result<Option<String>>
pub fn mode(self, gd: &GD) -> Result<Option<RailMode>>
pub fn local(self, gd: &GD) -> Result<Option<bool>>
pub fn platforms(self, gd: &GD) -> Result<Vec<RailPlatform>>
pub fn stations(self, gd: &GD) -> Result<Vec<RailStation>>
Trait Implementations§
Source§impl FromSql for RailLine
impl FromSql for RailLine
Source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
impl Copy for RailLine
impl Eq for RailLine
impl StructuralPartialEq for RailLine
Auto Trait Implementations§
impl Freeze for RailLine
impl RefUnwindSafe for RailLine
impl Send for RailLine
impl Sync for RailLine
impl Unpin for RailLine
impl UnwindSafe for RailLine
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