[][src]Struct arctk::ord::set::Set

pub struct Set<T>(_);

Data map.

Implementations

impl<T> Set<T>[src]

#[must_use]pub fn new(map: BTreeMap<String, T>) -> Self[src]

Construct a new instance.

pub fn from_vec(list: Vec<(String, T)>) -> Result<Self, Error>[src]

Construct an instance from a vector of pairs.

Errors

if a the list contains a duplicate entry.

#[must_use]pub fn values(&self) -> Values<'_, String, T>[src]

Iterate over the values.

#[must_use]pub fn get(&self, name: &str) -> Option<&T>[src]

Get a value from the map.

Trait Implementations

impl<T: Build> Build for Set<T>[src]

type Inst = Set<T::Inst>

End type to be built.

impl<T: Debug> Debug for Set<T>[src]

impl<'de, T> Deserialize<'de> for Set<T> where
    T: Deserialize<'de>, 
[src]

impl<T> IntoIterator for Set<T>[src]

type Item = (String, T)

The type of the elements being iterated over.

type IntoIter = IntoIter<String, T>

Which kind of iterator are we turning this into?

impl<'a, T, S: Link<'a, T>> Link<'a, T> for Set<S>[src]

type Inst = Set<S::Inst>

Type to be built.

impl<T> Load for Set<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Serialize for Set<T> where
    T: Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Set<T> where
    T: RefUnwindSafe

impl<T> Send for Set<T> where
    T: Send

impl<T> Sync for Set<T> where
    T: Sync

impl<T> Unpin for Set<T>

impl<T> UnwindSafe for Set<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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

impl<T> Background for T[src]

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

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

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Foreground for T[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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