pub struct Location {
pub region_name: RegionName,
pub x: u8,
pub y: u8,
pub z: u16,
}Expand description
A location inside Second Life the way it is usually represented in SLURLs or map URLs, based on a Region Name and integer coordinates inside the region
Fields§
§region_name: RegionNamethe name of the region of the location
x: u8the x coordinate inside the region
y: u8the y coordinate inside the region
z: u16the z coordinate inside the region
Implementations§
Source§impl Location
impl Location
Sourcepub const fn region_name(&self) -> &RegionName
pub const fn region_name(&self) -> &RegionName
The region name of this Location
Sourcepub fn as_maps_url(&self) -> String
pub fn as_maps_url(&self) -> String
returns a maps.secondlife.com URL for the Location
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
Source§fn 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
Source§impl From<Location> for UnconstrainedLocation
impl From<Location> for UnconstrainedLocation
Source§impl TryFrom<UnconstrainedLocation> for Location
impl TryFrom<UnconstrainedLocation> for Location
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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