[][src]Enum vadeen_osm::osm_io::FileFormat

pub enum FileFormat {
    Xml,
    O5m,
}

Represent a osm file format.

See OSM documentation over file formats.

Examples

assert_eq!("osm".try_into(), Ok(FileFormat::Xml));
assert_eq!(Path::new("./path/file.o5m").try_into(), Ok(FileFormat::O5m));
assert_eq!(FileFormat::from("o5m"), Some(FileFormat::O5m));

Variants

Xml
O5m

Methods

impl FileFormat[src]

pub fn from(s: &str) -> Option<Self>[src]

Trait Implementations

impl Clone for FileFormat[src]

impl Copy for FileFormat[src]

impl Debug for FileFormat[src]

impl PartialEq<FileFormat> for FileFormat[src]

impl StructuralPartialEq for FileFormat[src]

impl<'_> TryFrom<&'_ Path> for FileFormat[src]

type Error = String

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ String> for FileFormat[src]

type Error = String

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ str> for FileFormat[src]

type Error = String

The type returned in the event of a conversion error.

Auto Trait Implementations

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, 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.