pub enum CounterType {
Zero,
ProfileInstrumentation,
Expression(ExprKind),
}Expand description
Represents the type of a counter. The equivalent type in llvm would be Counter::CounterKind.
Variants§
Trait Implementations§
Source§impl Clone for CounterType
impl Clone for CounterType
Source§fn clone(&self) -> CounterType
fn clone(&self) -> CounterType
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 Debug for CounterType
impl Debug for CounterType
Source§impl Default for CounterType
impl Default for CounterType
Source§impl Hash for CounterType
impl Hash for CounterType
Source§impl Ord for CounterType
impl Ord for CounterType
Source§fn cmp(&self, other: &CounterType) -> Ordering
fn cmp(&self, other: &CounterType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CounterType
impl PartialEq for CounterType
Source§impl PartialOrd for CounterType
impl PartialOrd for CounterType
impl Copy for CounterType
impl Eq for CounterType
impl StructuralPartialEq for CounterType
Auto Trait Implementations§
impl Freeze for CounterType
impl RefUnwindSafe for CounterType
impl Send for CounterType
impl Sync for CounterType
impl Unpin for CounterType
impl UnwindSafe for CounterType
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.