pub struct Renfe { /* private fields */ }Implementations§
Source§impl Renfe
impl Renfe
pub fn new(cercanias: bool) -> PyResult<Self>
pub fn all_stations(&self) -> PyResult<Vec<Station>>
pub fn stations_match(&self, station: String) -> PyResult<Vec<Station>>
pub fn filter_station(&self, station: String) -> PyResult<Station>
pub fn set_train_schedules( &mut self, origin_station_id: &str, destination_station_id: &str, day: u32, month: u32, year: i32, sorted: bool, ) -> PyResult<()>
pub fn print_timetable(&self)
Trait Implementations§
Source§impl PyClassImpl for Renfe
impl PyClassImpl for Renfe
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
Source§type ThreadChecker = SendablePyClass<Renfe>
type ThreadChecker = SendablePyClass<Renfe>
This handles following two situations: Read more
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature<Renfe> for PyClassImplCollector<Renfe>
impl PyClassNewTextSignature<Renfe> for PyClassImplCollector<Renfe>
fn new_text_signature(self) -> Option<&'static str>
Source§impl PyMethods<Renfe> for PyClassImplCollector<Renfe>
impl PyMethods<Renfe> for PyClassImplCollector<Renfe>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for Renfe
impl PyTypeInfo for Renfe
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
impl DerefToPyAny for Renfe
Auto Trait Implementations§
impl Freeze for Renfe
impl RefUnwindSafe for Renfe
impl Send for Renfe
impl Sync for Renfe
impl Unpin for Renfe
impl UnwindSafe for Renfe
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