Skip to main content

EarthShape

Struct EarthShape 

Source
pub struct EarthShape {
    pub shape: u8,
    pub spherical_earth_radius_scale_factor: u8,
    pub spherical_earth_radius_scaled_value: u32,
    pub major_axis_scale_factor: u8,
    pub major_axis_scaled_value: u32,
    pub minor_axis_scale_factor: u8,
    pub minor_axis_scaled_value: u32,
}

Fields§

§shape: u8

Shape of the Earth (see Code table 3.2).

§spherical_earth_radius_scale_factor: u8

Scale factor of radius of spherical Earth.

§spherical_earth_radius_scaled_value: u32

Scaled value of radius of spherical Earth.

§major_axis_scale_factor: u8

Scale factor of major axis of oblate spheroid Earth.

§major_axis_scaled_value: u32

Scaled value of major axis of oblate spheroid Earth.

§minor_axis_scale_factor: u8

Scale factor of minor axis of oblate spheroid Earth.

§minor_axis_scaled_value: u32

Scaled value of minor axis of oblate spheroid Earth.

Implementations§

Source§

impl EarthShape

Source

pub fn radii(&self) -> Option<(f64, f64)>

Trait Implementations§

Source§

impl Debug for EarthShape

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Dump for EarthShape

Source§

fn dump<W: Write>( &self, parent: Option<&Cow<'_, str>>, pos: &mut usize, output: &mut W, ) -> Result<(), Error>

Perform dumping to output. Read more
Source§

impl PartialEq for EarthShape

Source§

fn eq(&self, other: &EarthShape) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFromSlice for EarthShape

Source§

fn try_from_slice(slice: &[u8], pos: &mut usize) -> TryFromSliceResult<Self>

Performs reading. The pos argument is a variable storing the starting position for reading within the slice. Read more
Source§

impl WriteToBuffer for EarthShape

Source§

fn write_to_buffer(&self, buf: &mut [u8]) -> Result<usize, &'static str>

Performs writing and returns the number of bytes used.
Source§

fn num_bytes_required(&self) -> usize

Returns the number of bytes that are expected to be used for writing.
Source§

impl Eq for EarthShape

Source§

impl StructuralPartialEq for EarthShape

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> DumpField for T
where T: Dump,

§

fn dump_field<W>( &self, name: &str, parent: Option<&Cow<'_, str>>, _doc: &str, pos: &mut usize, output: &mut W, ) -> Result<(), Error>
where W: Write,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.