[−][src]Struct gw2api::v1::map_floor::Floor
Struct containing details about a specified map floor. All coordinates are map coordinates.
Implementations
impl Floor
[src]
pub fn get_map_floor(
client: &Client,
continent_id: u32,
floor: i32
) -> Result<Floor, ApiError>
[src]
client: &Client,
continent_id: u32,
floor: i32
) -> Result<Floor, ApiError>
Retrieve a map floor by its continent id and floor number.
pub fn texture_dims(&self) -> &Vec<f32>
[src]
Returns a tuple describing the dimension of the texture for the map floor.
pub fn clamped_view(&self) -> &Vec<Vec<f32>>
[src]
If present, it represents a rectangle of downloadable textures. Every tile coordinate outside this rectangle is not available on the tile server. Returns the name of the map.
pub fn regions(&self) -> &BTreeMap<u32, Region>
[src]
Returns a map of the regions of a map, where the region id is key and the region object is the value.
Trait Implementations
impl Debug for Floor
[src]
impl<'de> Deserialize<'de> for Floor
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Floor> for Floor
[src]
impl StructuralPartialEq for Floor
[src]
Auto Trait Implementations
impl RefUnwindSafe for Floor
impl Send for Floor
impl Sync for Floor
impl Unpin for Floor
impl UnwindSafe for Floor
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
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.
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>,