pub struct Set<'a, T> { /* fields omitted */ }
Creates a new Set using a parent-Set to which it applies a closure.
parent
- The Set from which the new set emerges.
f
- The closure after which the new set is created.
A child Set.
Does a mathematical union on two sets.
self
- The first set.
other
- The second set.
A new set containing the union of both sets.
Does a mathematical intersection on two sets.
self
- The first set.
other
- The second set.
A new set containing the intersection of both sets.
Lets you check for an element in a set.
elem
- The element to check for.
A boolean value which determines if the element is in the set.
Lets you check wether a set has a parent or not.
A boolean value which determines if the set has a value.
Lets you set the elements of a set.
vals
- The Vec to change the values to.
Nothing.
Lets you get the elements of a set.
A &Vec<T>
containing all elements.
Lets you print a set with all its parents recursively.
Nothing.
Converts a set with all subsets to a string.
A String containing the result.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The returned type after indexing.
Performs the indexing (container[index]
) operation. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.