Struct map::references::IntiTrainRef
source · pub struct IntiTrainRef {
pub train: *const TrainController<MapStateInitialized>,
}
Fields§
§train: *const TrainController<MapStateInitialized>
Methods from Deref<Target = TrainController<MapStateInitialized>>§
pub fn set_position(&self, new_position: &Node<MapStateInitialized>)
pub fn get_position(&self) -> Position
pub fn get_current_node(&self) -> IntiNodeRef
Trait Implementations§
source§impl Clone for IntiTrainRef
impl Clone for IntiTrainRef
source§fn clone(&self) -> IntiTrainRef
fn clone(&self) -> IntiTrainRef
Returns a copy 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 IntiTrainRef
impl Debug for IntiTrainRef
source§impl Deref for IntiTrainRef
impl Deref for IntiTrainRef
§type Target = TrainController<MapStateInitialized>
type Target = TrainController<MapStateInitialized>
The resulting type after dereferencing.
source§impl<'de> Deserialize<'de> for IntiTrainRef
impl<'de> Deserialize<'de> for IntiTrainRef
source§fn deserialize<D>(_: D) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(_: D) -> Result<Self, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&TrainController<MapStateInitialized>> for IntiTrainRef
impl From<&TrainController<MapStateInitialized>> for IntiTrainRef
source§fn from(value: &TrainController<MapStateInitialized>) -> Self
fn from(value: &TrainController<MapStateInitialized>) -> Self
Converts to this type from the input type.
source§impl PartialEq<IntiTrainRef> for IntiTrainRef
impl PartialEq<IntiTrainRef> for IntiTrainRef
source§fn eq(&self, other: &IntiTrainRef) -> bool
fn eq(&self, other: &IntiTrainRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ReferenceState for IntiTrainRef
impl ReferenceState for IntiTrainRef
type InitializedType = IntiTrainRef
type UninitializedType = UnIntiTrainRef
source§impl ReferenceStateInitialized for IntiTrainRef
impl ReferenceStateInitialized for IntiTrainRef
fn un_initialize(self) -> Self::UninitializedType
source§impl Serialize for IntiTrainRef
impl Serialize for IntiTrainRef
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more