pub struct GrantRetirements<T: Ord>(/* private fields */);Implementations§
Source§impl<T: Ord> GrantRetirements<T>
impl<T: Ord> GrantRetirements<T>
pub fn new(retirement: T) -> Self
pub fn insert(&mut self, retirement: T) -> bool
pub fn extend(&mut self, retirements: impl IntoIterator<Item = T>)
pub fn iter(&self) -> impl Iterator<Item = &T>
pub fn contains(&self, retirement: &T) -> bool
pub fn as_set(&self) -> &BTreeSet<T>
Trait Implementations§
Source§impl<T: Clone + Ord> Clone for GrantRetirements<T>
impl<T: Clone + Ord> Clone for GrantRetirements<T>
Source§fn clone(&self) -> GrantRetirements<T>
fn clone(&self) -> GrantRetirements<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, T> Deserialize<'de> for GrantRetirements<T>where
T: Deserialize<'de> + Ord,
impl<'de, T> Deserialize<'de> for GrantRetirements<T>where
T: Deserialize<'de> + Ord,
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Serialize for GrantRetirements<T>
impl<T> Serialize for GrantRetirements<T>
impl<T: Eq + Ord> Eq for GrantRetirements<T>
impl<T: Ord> StructuralPartialEq for GrantRetirements<T>
Auto Trait Implementations§
impl<T> Freeze for GrantRetirements<T>
impl<T> RefUnwindSafe for GrantRetirements<T>where
T: RefUnwindSafe,
impl<T> Send for GrantRetirements<T>where
T: Send,
impl<T> Sync for GrantRetirements<T>where
T: Sync,
impl<T> Unpin for GrantRetirements<T>
impl<T> UnsafeUnpin for GrantRetirements<T>
impl<T> UnwindSafe for GrantRetirements<T>where
T: RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.