pub struct SortedParMap {
pub ps: HashMap<Par, Par>,
pub sorted_list: Vec<(Par, Par)>,
/* private fields */
}Fields§
§ps: HashMap<Par, Par>§sorted_list: Vec<(Par, Par)>Implementations§
Source§impl SortedParMap
impl SortedParMap
pub fn create_from_map(map: HashMap<Par, Par>) -> Self
pub fn create_from_vec(vec: Vec<(Par, Par)>) -> Self
pub fn create_from_empty() -> Self
pub fn insert(&mut self, kv: (Par, Par)) -> SortedParMap
pub fn extend(&mut self, kvs: Vec<(Par, Par)>) -> SortedParMap
pub fn remove(&mut self, key: Par) -> SortedParMap
pub fn remove_multiple(&mut self, keys: Vec<Par>) -> SortedParMap
pub fn apply(&self, key: Par) -> Option<Par>
pub fn contains(&self, par: Par) -> bool
pub fn get(&self, key: Par) -> Option<Par>
pub fn get_or_else(&self, key: Par, default: Par) -> Par
pub fn keys(&self) -> Vec<Par>
pub fn values(&self) -> Vec<Par>
pub fn equals(&self, that: SortedParMap) -> bool
pub fn length(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for SortedParMap
impl Clone for SortedParMap
Source§fn clone(&self) -> SortedParMap
fn clone(&self) -> SortedParMap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SortedParMap
impl Debug for SortedParMap
Source§impl IntoIterator for SortedParMap
impl IntoIterator for SortedParMap
Source§impl PartialEq for SortedParMap
impl PartialEq for SortedParMap
Auto Trait Implementations§
impl Freeze for SortedParMap
impl RefUnwindSafe for SortedParMap
impl Send for SortedParMap
impl Sync for SortedParMap
impl Unpin for SortedParMap
impl UnsafeUnpin for SortedParMap
impl UnwindSafe for SortedParMap
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request