[−][src]Enum mercator_db::Properties
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.
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]
S: Into<String>,
Instantiate a new feature.
Parameters
id: The identifier of the object, which can be converted into aString.
pub fn unknown<S>(id: S, type_name: S) -> Properties where
S: Into<String>, [src]
S: Into<String>,
Instantiate a new arbitrary kind of object, with the given id.
Parameters
-
id: The identifier of the object, which can be converted into aString. -
type_name: A value which can be converted into aString, and represent the kind of the object.
Trait Implementations
impl Clone for Properties[src]
fn clone(&self) -> Properties[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Properties[src]
impl<'de> Deserialize<'de> for Properties[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for Properties[src]
impl<'_, '_> From<&'_ &'_ Properties> for Properties[src]
fn from(p: &&Properties) -> Self[src]
impl Hash for Properties[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Properties> for Properties[src]
fn eq(&self, other: &Properties) -> bool[src]
fn ne(&self, other: &Properties) -> bool[src]
impl Serialize for Properties[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,