[][src]Struct gchemol_core::PropertyStore

pub struct PropertyStore { /* fields omitted */ }

A container storing extra information managed as key/value pairs

Methods

impl PropertyStore[src]

pub fn contains_key(&self, key: &str) -> bool[src]

Returns true if the map contains a value for the specified key.

pub fn load<D: DeserializeOwned>(&self, key: &str) -> Result<D>[src]

Retrieve property associated with the key

pub fn store<D: Serialize>(&mut self, key: &str, value: D)[src]

Store property associatd with the key

pub fn discard(&mut self, key: &str)[src]

Discard property associated with the key

Trait Implementations

impl Clone for PropertyStore[src]

impl Debug for PropertyStore[src]

impl Default for PropertyStore[src]

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

impl Serialize for PropertyStore[src]

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> 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> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,