[][src]Enum mercator_db::Properties

pub enum Properties {
    Feature(String),
    Unknown(StringString),
}

Definition of the volumetric objects identifiers.

We have two parts to it, first the kind and the actual, id used to distinguish different objects.

Variants

Feature(String)

Spatial Features.

Unknown(StringString)

Unoptimized arbitrary kind of identifiers.

Methods

impl Properties[src]

pub fn id(&self) -> &str[src]

Extract the identifier of this spatial object.

pub fn type_name(&self) -> &str[src]

Extract the kind of spatial object.

pub fn feature<S>(id: S) -> Properties where
    S: Into<String>, 
[src]

Instantiate a new feature.

Parameters

  • id: The identifier of the object, which can be converted into a String.

pub fn unknown<S>(id: S, type_name: S) -> Properties where
    S: Into<String>, 
[src]

Instantiate a new arbitrary kind of object, with the given id.

Parameters

  • id: The identifier of the object, which can be converted into a String.

  • type_name: A value which can be converted into a String, and represent the kind of the object.

Trait Implementations

impl Clone for Properties[src]

impl Debug for Properties[src]

impl<'de> Deserialize<'de> for Properties[src]

impl Eq for Properties[src]

impl<'_, '_> From<&'_ &'_ Properties> for Properties[src]

impl Hash for Properties[src]

impl PartialEq<Properties> for Properties[src]

impl Serialize for Properties[src]

impl StructuralEq for Properties[src]

impl StructuralPartialEq for Properties[src]

Auto Trait Implementations

impl RefUnwindSafe for Properties

impl Send for Properties

impl Sync for Properties

impl Unpin for Properties

impl UnwindSafe for Properties

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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.