Struct idmap::set::IdSet[][src]

pub struct IdSet<T: IntegerId> { /* fields omitted */ }

Methods

impl<T: IntegerId> IdSet<T>
[src]

Inserts the specified element into the set, returning true if it was already in the set and false if it wasn't.

Remove the specified value from the set if it is present, returning whether or not it was present.

Check if this set contains the specified value

Important traits for Iter<'a, T>

Trait Implementations

impl<T: Clone + IntegerId> Clone for IdSet<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: IntegerId> Default for IdSet<T>
[src]

Returns the "default value" for a type. Read more

impl<T: IntegerId + PartialEq> PartialEq for IdSet<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: IntegerId + Eq> Eq for IdSet<T>
[src]

impl<T: IntegerId> Debug for IdSet<T>
[src]

Formats the value using the given formatter. Read more

impl<'a, T: IntegerId + 'a> Extend<&'a T> for IdSet<T>
[src]

Extends a collection with the contents of an iterator. Read more

impl<T: IntegerId> Extend<T> for IdSet<T>
[src]

Extends a collection with the contents of an iterator. Read more

impl<T: IntegerId> FromIterator<T> for IdSet<T>
[src]

Creates a value from an iterator. Read more

impl<'a, T: IntegerId + 'a> FromIterator<&'a T> for IdSet<T>
[src]

Creates a value from an iterator. Read more

impl<'a, T: IntegerId + 'a> IntoIterator for &'a IdSet<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<'a, T: IntegerId + 'a> Index<&'a T> for IdSet<T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<'a, T: IntegerId + 'a> Index<T> for IdSet<T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<T: IntegerId + Hash> Hash for IdSet<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: IntegerId + PartialOrd> PartialOrd for IdSet<T>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: IntegerId + Ord> Ord for IdSet<T>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<'de, T> Deserialize<'de> for IdSet<T> where
    T: IntegerId + Deserialize<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<T> Serialize for IdSet<T> where
    T: IntegerId + Serialize
[src]

Serialize this value into the given Serde serializer. Read more

impl<T: IntegerId> VisitMap<T> for IdSet<T>
[src]

Mark a as visited. Read more

Return whether a has been visited before.

Auto Trait Implementations

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

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