pub struct MapIconSpec {
pub kind: MapIconType,
pub position: TopDownPosition<i8>,
pub direction: i8,
pub display_name: Option<Chat>,
}
Fields§
§kind: MapIconType
§position: TopDownPosition<i8>
§direction: i8
§display_name: Option<Chat>
Trait Implementations§
Source§impl Clone for MapIconSpec
impl Clone for MapIconSpec
Source§fn clone(&self) -> MapIconSpec
fn clone(&self) -> MapIconSpec
Returns a duplicate 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 MapIconSpec
impl Debug for MapIconSpec
Source§impl Deserialize for MapIconSpec
impl Deserialize for MapIconSpec
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<(MapIconType, ChunkPosition<i8>, i8, Option<Chat>)> for MapIconSpec
impl From<(MapIconType, ChunkPosition<i8>, i8, Option<Chat>)> for MapIconSpec
Source§fn from(other: (MapIconType, TopDownPosition<i8>, i8, Option<Chat>)) -> Self
fn from(other: (MapIconType, TopDownPosition<i8>, i8, Option<Chat>)) -> Self
Converts to this type from the input type.
Source§impl From<MapIconSpec> for (MapIconType, TopDownPosition<i8>, i8, Option<Chat>)
impl From<MapIconSpec> for (MapIconType, TopDownPosition<i8>, i8, Option<Chat>)
Source§fn from(other: MapIconSpec) -> Self
fn from(other: MapIconSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MapIconSpec
impl PartialEq for MapIconSpec
Source§impl Serialize for MapIconSpec
impl Serialize for MapIconSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for MapIconSpec
Auto Trait Implementations§
impl Freeze for MapIconSpec
impl RefUnwindSafe for MapIconSpec
impl Send for MapIconSpec
impl Sync for MapIconSpec
impl Unpin for MapIconSpec
impl UnwindSafe for MapIconSpec
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