pub struct TransitState {
pub from: TerritoryId,
pub to: TerritoryId,
pub departed_at: SimTime,
pub arrives_at: SimTime,
}Fields§
§from: TerritoryId§to: TerritoryId§departed_at: SimTime§arrives_at: SimTimeTrait Implementations§
Source§impl Clone for TransitState
impl Clone for TransitState
Source§fn clone(&self) -> TransitState
fn clone(&self) -> TransitState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TransitState
impl Debug for TransitState
Source§impl<'de> Deserialize<'de> for TransitState
impl<'de> Deserialize<'de> for TransitState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransitState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransitState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TransitState
Source§impl PartialEq for TransitState
impl PartialEq for TransitState
Source§impl Serialize for TransitState
impl Serialize for TransitState
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
impl StructuralPartialEq for TransitState
Auto Trait Implementations§
impl Freeze for TransitState
impl RefUnwindSafe for TransitState
impl Send for TransitState
impl Sync for TransitState
impl Unpin for TransitState
impl UnsafeUnpin for TransitState
impl UnwindSafe for TransitState
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