pub struct LandArea(pub u32);Expand description
A Second Life land area, in square metres — the unit SL measures parcels and land-tier accounting in (a member’s group land contribution, a parcel’s actual/billable area, an avatar’s land credit/commitment, …).
This is deliberately not an LindenAmount:
land areas occupy the same signed-32-bit integer slots prices use, and the
two are trivially confusable as raw integers. Wrapping area in its own
newtype makes “passed a land area where an L$ price was expected” (and
vice-versa) a compile error. A land area is non-negative by construction.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
impl Copy for LandArea
Source§impl<'de> Deserialize<'de> for LandArea
impl<'de> Deserialize<'de> for LandArea
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
impl Eq for LandArea
Source§impl Ord for LandArea
impl Ord for LandArea
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for LandArea
impl PartialOrd for LandArea
impl StructuralPartialEq for LandArea
Auto Trait Implementations§
impl Freeze for LandArea
impl RefUnwindSafe for LandArea
impl Send for LandArea
impl Sync for LandArea
impl Unpin for LandArea
impl UnsafeUnpin for LandArea
impl UnwindSafe for LandArea
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