#[non_exhaustive]pub struct MapConnections<M: MapTrait> {
pub north: Option<MapConnection<M>>,
pub south: Option<MapConnection<M>>,
pub west: Option<MapConnection<M>>,
pub east: Option<MapConnection<M>>,
}Expand description
All connections for a map (up to one per cardinal direction).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.north: Option<MapConnection<M>>§south: Option<MapConnection<M>>§west: Option<MapConnection<M>>§east: Option<MapConnection<M>>Implementations§
Trait Implementations§
Source§impl<M: Clone + MapTrait> Clone for MapConnections<M>
impl<M: Clone + MapTrait> Clone for MapConnections<M>
Source§fn clone(&self) -> MapConnections<M>
fn clone(&self) -> MapConnections<M>
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<M: MapTrait> Default for MapConnections<M>
impl<M: MapTrait> Default for MapConnections<M>
Source§impl<'de, M> Deserialize<'de> for MapConnections<M>where
M: Deserialize<'de> + MapTrait,
impl<'de, M> Deserialize<'de> for MapConnections<M>where
M: Deserialize<'de> + MapTrait,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<M> Freeze for MapConnections<M>where
M: Freeze,
impl<M> RefUnwindSafe for MapConnections<M>where
M: RefUnwindSafe,
impl<M> Send for MapConnections<M>where
M: Send,
impl<M> Sync for MapConnections<M>where
M: Sync,
impl<M> Unpin for MapConnections<M>where
M: Unpin,
impl<M> UnsafeUnpin for MapConnections<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for MapConnections<M>where
M: UnwindSafe,
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