[−][src]Struct sulis_state::Location
Fields
x: i32
y: i32
area_id: String
area_width: i32
area_height: i32
Implementations
impl Location
[src]
pub fn new(x: i32, y: i32, area: &Area) -> Location
[src]
pub fn from_point(p: Point, area: &Area) -> Location
[src]
pub fn to_point(&self) -> Point
[src]
pub fn move_to(&mut self, x: i32, y: i32)
[src]
pub fn coords_valid(&self, x: i32, y: i32) -> bool
[src]
pub fn is_in(&self, area_state: &AreaState) -> bool
[src]
pub fn is_in_area_id(&self, id: &str) -> bool
[src]
Trait Implementations
impl Clone for Location
[src]
impl Debug for Location
[src]
impl Eq for Location
[src]
impl PartialEq<Location> for Location
[src]
impl StructuralEq for Location
[src]
Auto Trait Implementations
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,