Struct imageflow_types::collections::AddRemoveSet [] [src]

pub struct AddRemoveSet<T> { /* fields omitted */ }

Provides a simple set which has interior mutability. Removal is offered, but can fail at runtime if there is an active borrow. Removal leaves holes, and there is no way to reclaim that space.

Methods

impl<T> AddRemoveSet<T>
[src]

Ok(None) means it definitely doesn't exist in the set Err() means we couldn't access all the items in

Ok(true) - removed. Ok(false) - certainly didn't exist. Err() - either borrowed or didn't exist (unknowable)

Trait Implementations

impl<T: Debug> Debug for AddRemoveSet<T>
[src]

Formats the value using the given formatter.

impl<T: Clone> Clone for AddRemoveSet<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for AddRemoveSet<T>
[src]

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

This method tests for !=.