pub struct LOC {
pub version: u8,
pub size: u8,
pub horizontal_precision: u8,
pub vertical_precision: u8,
pub latitude: i32,
pub longitude: i32,
pub altitude: i32,
}Expand description
A Means for Expressing Location Information in the Domain Name System RFC 1876
Fields§
§version: u8Version number of the representation. This must be zero.
size: u8The diameter of a sphere enclosing the described entity, in centimeters, expressed as a pair of four-bit unsigned integers
horizontal_precision: u8The horizontal precision of the data, in centimeters, expressed using the same representation as SIZE
vertical_precision: u8The vertical precision of the data, in centimeters, expressed using the sane representation as for SIZE
latitude: i32The latitude of the center of the sphere described by the SIZE field
longitude: i32The longitude of the center of the sphere described by the SIZE field
altitude: i32The altitude of the center of the sphere described by the SIZE field
Implementations§
Source§impl LOC
impl LOC
Sourcepub fn into_owned(self) -> Self
pub fn into_owned(self) -> Self
Transforms the inner data into its owned type
Trait Implementations§
impl Eq for LOC
impl StructuralPartialEq for LOC
Auto Trait Implementations§
impl Freeze for LOC
impl RefUnwindSafe for LOC
impl Send for LOC
impl Sync for LOC
impl Unpin for LOC
impl UnwindSafe for LOC
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