pub struct SortedParHashSet {
pub ps: HashSet<Par>,
pub sorted_pars: Vec<Par>,
pub sorted_ps: HashSet<Par>,
}Fields§
§ps: HashSet<Par>§sorted_pars: Vec<Par>§sorted_ps: HashSet<Par>Implementations§
Source§impl SortedParHashSet
impl SortedParHashSet
pub fn create_from_vec(vec: Vec<Par>) -> Self
pub fn create_from_set(set: HashSet<Par>) -> Self
pub fn create_from_empty() -> Self
pub fn insert(&mut self, elem: Par) -> SortedParHashSet
pub fn remove(&mut self, elem: Par) -> SortedParHashSet
pub fn contains(&self, elem: Par) -> bool
pub fn union(&self, that: HashSet<Par>) -> SortedParHashSet
pub fn equals(&self, that: SortedParHashSet) -> bool
pub fn length(&self) -> usize
pub fn sort(par: &Par) -> Par
Trait Implementations§
Source§impl Clone for SortedParHashSet
impl Clone for SortedParHashSet
Source§fn clone(&self) -> SortedParHashSet
fn clone(&self) -> SortedParHashSet
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 SortedParHashSet
impl Debug for SortedParHashSet
Source§impl PartialEq for SortedParHashSet
impl PartialEq for SortedParHashSet
Auto Trait Implementations§
impl Freeze for SortedParHashSet
impl RefUnwindSafe for SortedParHashSet
impl Send for SortedParHashSet
impl Sync for SortedParHashSet
impl Unpin for SortedParHashSet
impl UnsafeUnpin for SortedParHashSet
impl UnwindSafe for SortedParHashSet
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