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

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

Methods

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

[src]

[src]

[src]

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

[src]

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

[src]

Check if this set contains the specified value

Important traits for Iter<'a, T>
[src]

[src]

[src]

[src]

[src]

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

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

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

[src]

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

1.0.0
[src]

This method tests for !=.

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

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

[src]

Formats the value using the given formatter. Read more

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

[src]

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

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

[src]

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

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

[src]

Creates a value from an iterator. Read more

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

[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?

[src]

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.

[src]

Performs the indexing (container[index]) operation.

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

[src]

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

1.3.0
[src]

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

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

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

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

[src]

Deserialize this value from the given Serde deserializer. Read more

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

[src]

Serialize this value into the given Serde serializer. Read more

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

[src]

Mark a as visited. Read more

[src]

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