pub struct Set { /* private fields */ }Expand description
A set: distinct values, sorted.
Implementations§
Source§impl Set
impl Set
Sourcepub fn from_items(
items: impl IntoIterator<Item = Value>,
) -> Result<Set, DataError>
pub fn from_items( items: impl IntoIterator<Item = Value>, ) -> Result<Set, DataError>
Returns the set of items’ distinct elements (set.from).
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = &Value>
pub fn iter(&self) -> impl ExactSizeIterator<Item = &Value>
Returns the elements, in order.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Set
impl !UnwindSafe for Set
impl Freeze for Set
impl Send for Set
impl Sync for Set
impl Unpin for Set
impl UnsafeUnpin for Set
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more