Struct av_stream_info_rust::LatLong[][src]

pub struct LatLong {
    pub lat: f64,
    pub long: f64,
}

Represents a geo-location with latitude and longitude. It can be constructed from a String.

Example

use std::convert::TryFrom;
use av_stream_info_rust::LatLong;
 
let lat_long_str = String::from("10.1,-3.1");
let lat_long = LatLong::try_from(lat_long_str).unwrap();
println!("{},{}", lat_long.lat, lat_long.long);

Fields

lat: f64

Latitude

long: f64

Longitude

Trait Implementations

impl Clone for LatLong[src]

impl Debug for LatLong[src]

impl Serialize for LatLong[src]

impl TryFrom<String> for LatLong[src]

type Error = DecodeError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for LatLong

impl Send for LatLong

impl Sync for LatLong

impl Unpin for LatLong

impl UnwindSafe for LatLong

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.