pub struct UnconstrainedLocation {
pub region_name: RegionName,
pub x: i16,
pub y: i16,
pub z: i32,
}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, this variant allows out of bounds coordinates (negative and 256 or above for x and y and negative for z)
Fields§
§region_name: RegionNamethe name of the region of the location
x: i16the x coordinate inside the region
y: i16the y coordinate inside the region
z: i32the z coordinate inside the region
Implementations§
Source§impl UnconstrainedLocation
impl UnconstrainedLocation
Sourcepub const fn new(region_name: RegionName, x: i16, y: i16, z: i32) -> Self
pub const fn new(region_name: RegionName, x: i16, y: i16, z: i32) -> Self
Creates a new UnconstrainedLocation
Sourcepub const fn region_name(&self) -> &RegionName
pub const fn region_name(&self) -> &RegionName
The region name of this UnconstrainedLocation
Trait Implementations§
Source§impl Clone for UnconstrainedLocation
impl Clone for UnconstrainedLocation
Source§fn clone(&self) -> UnconstrainedLocation
fn clone(&self) -> UnconstrainedLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnconstrainedLocation
impl Debug for UnconstrainedLocation
Source§impl<'de> Deserialize<'de> for UnconstrainedLocation
impl<'de> Deserialize<'de> for UnconstrainedLocation
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 Hash for UnconstrainedLocation
impl Hash for UnconstrainedLocation
Source§impl PartialEq for UnconstrainedLocation
impl PartialEq for UnconstrainedLocation
Source§impl Serialize for UnconstrainedLocation
impl Serialize 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 UnconstrainedLocation
impl StructuralPartialEq for UnconstrainedLocation
Auto Trait Implementations§
impl Freeze for UnconstrainedLocation
impl RefUnwindSafe for UnconstrainedLocation
impl Send for UnconstrainedLocation
impl Sync for UnconstrainedLocation
impl Unpin for UnconstrainedLocation
impl UnwindSafe for UnconstrainedLocation
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