pub struct DmsCoordinate {
pub degree: Option<String>,
pub minute: Option<String>,
pub second: Option<String>,
}Expand description
緯度経度取得用のトレイト
各バージョンのボーリングデータ構造体に実装され、 統一的なインターフェースで緯度経度情報を取得できます。 度分秒形式の座標
Fields§
§degree: Option<String>度
minute: Option<String>分
second: Option<String>秒
Implementations§
Source§impl DmsCoordinate
impl DmsCoordinate
Sourcepub fn to_decimal(&self) -> Option<f64>
pub fn to_decimal(&self) -> Option<f64>
度分秒を10進数(度)に変換
度、分、秒のいずれかがNoneまたはパースできない場合はNoneを返す
Trait Implementations§
Source§impl Clone for DmsCoordinate
impl Clone for DmsCoordinate
Source§fn clone(&self) -> DmsCoordinate
fn clone(&self) -> DmsCoordinate
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 DmsCoordinate
impl Debug for DmsCoordinate
Source§impl PartialEq for DmsCoordinate
impl PartialEq for DmsCoordinate
impl StructuralPartialEq for DmsCoordinate
Auto Trait Implementations§
impl Freeze for DmsCoordinate
impl RefUnwindSafe for DmsCoordinate
impl Send for DmsCoordinate
impl Sync for DmsCoordinate
impl Unpin for DmsCoordinate
impl UnwindSafe for DmsCoordinate
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