Struct screeps::LocalRoomPosition
[−]
[src]
pub struct LocalRoomPosition { pub room_name: LocalRoomName, pub x: u8, pub y: u8, }
Fields
room_name: LocalRoomName
x: u8
y: u8
Trait Implementations
impl TryFrom<Value> for LocalRoomPosition
[src]
type Error = <Value as TryInto<String>>::Error
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<LocalRoomPosition, Self::Error>
[src]
Performs the conversion.
impl Serialize for LocalRoomPosition
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for LocalRoomPosition
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for LocalRoomPosition
[src]
impl Clone for LocalRoomPosition
[src]
fn clone(&self) -> LocalRoomPosition
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for LocalRoomPosition
[src]
impl PartialEq for LocalRoomPosition
[src]
fn eq(&self, __arg_0: &LocalRoomPosition) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LocalRoomPosition) -> bool
[src]
This method tests for !=
.
impl Hash for LocalRoomPosition
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for LocalRoomPosition
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more