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

pub struct Set<T: Ord, S>(_);

Set map.

Implementations

impl<T: Display + Ord + PartialEq, S> Set<T, S>[src]

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

Construct a new instance.

#[must_use]pub fn from_vec(list: Vec<(T, S)>) -> Self[src]

Construct an instance from a vector.

#[must_use]pub fn map(&self) -> &BTreeMap<T, S>[src]

Access the stored map.

#[must_use]pub fn mut_map(&mut self) -> &mut BTreeMap<T, S>[src]

Access the stored map mutably.

#[must_use]pub fn index_of(&self, k: &T) -> Option<usize>[src]

Determine the index of a given key within the Set. Return None if the key does not exist.

Trait Implementations

impl<T: Display + Ord, S: Build> Build for Set<T, S>[src]

type Inst = Set<T, S::Inst>

End type to be built.

impl<T: Debug + Ord, S: Debug> Debug for Set<T, S>[src]

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

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

impl<T: Ord + Serialize, S: Serialize> Save for Set<T, S>[src]

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

Auto Trait Implementations

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

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

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

impl<T, S> Unpin for Set<T, S> where
    S: Unpin,
    T: Unpin

impl<T, S> UnwindSafe for Set<T, S> where
    S: RefUnwindSafe + UnwindSafe,
    T: RefUnwindSafe + UnwindSafe

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