Struct screeps::LocalRoomPosition
source · pub struct LocalRoomPosition {
pub room_name: LocalRoomName,
pub x: u32,
pub y: u32,
}
Fields
room_name: LocalRoomName
x: u32
y: u32
Implementations
sourceimpl LocalRoomPosition
impl LocalRoomPosition
pub fn remote(&self) -> RoomPosition
Trait Implementations
sourceimpl Clone for LocalRoomPosition
impl Clone for LocalRoomPosition
sourcefn clone(&self) -> LocalRoomPosition
fn clone(&self) -> LocalRoomPosition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LocalRoomPosition
impl Debug for LocalRoomPosition
sourceimpl<'de> Deserialize<'de> for LocalRoomPosition
impl<'de> Deserialize<'de> for LocalRoomPosition
sourcefn 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
sourceimpl HasPosition for LocalRoomPosition
impl HasPosition for LocalRoomPosition
fn pos(&self) -> RoomPosition
sourceimpl Hash for LocalRoomPosition
impl Hash for LocalRoomPosition
sourceimpl PartialEq<LocalRoomPosition> for LocalRoomPosition
impl PartialEq<LocalRoomPosition> for LocalRoomPosition
sourcefn eq(&self, other: &LocalRoomPosition) -> bool
fn eq(&self, other: &LocalRoomPosition) -> bool
sourceimpl Serialize for LocalRoomPosition
impl Serialize for LocalRoomPosition
sourceimpl TryFrom<Value> for LocalRoomPosition
impl TryFrom<Value> for LocalRoomPosition
impl Copy for LocalRoomPosition
impl Eq for LocalRoomPosition
impl StructuralEq for LocalRoomPosition
impl StructuralPartialEq for LocalRoomPosition
Auto Trait Implementations
impl RefUnwindSafe for LocalRoomPosition
impl Send for LocalRoomPosition
impl Sync for LocalRoomPosition
impl Unpin for LocalRoomPosition
impl UnwindSafe for LocalRoomPosition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
impl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
sourcefn into_expected_type(self) -> Result<U, ConversionError>
fn into_expected_type(self) -> Result<U, ConversionError>
Casts this value as the target type, making the assumption that the types are correct. Read more