Enum mzdata::spectrum::ScanPolarity
source · #[repr(i8)]pub enum ScanPolarity {
Unknown = 0,
Positive = 1,
Negative = -1,
}
Expand description
Describes the polarity of a mass spectrum. A spectrum is either Positive
(1+), Negative
(-1)
or Unknown
(0). The Unknown
state is the default.
Variants§
Unknown = 0
The polarity of the spectrum is unknown
Positive = 1
The polarity is positive, where charge states represent the addition of positive charge
Negative = -1
The polarity is negative, where the charge states reprsent the addition of electrons or other negatively charged adduction
Implementations§
Trait Implementations§
source§impl Clone for ScanPolarity
impl Clone for ScanPolarity
source§fn clone(&self) -> ScanPolarity
fn clone(&self) -> ScanPolarity
Returns a copy 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 ScanPolarity
impl Debug for ScanPolarity
source§impl Default for ScanPolarity
impl Default for ScanPolarity
source§fn default() -> ScanPolarity
fn default() -> ScanPolarity
Returns the “default value” for a type. Read more
source§impl Display for ScanPolarity
impl Display for ScanPolarity
source§impl PartialEq for ScanPolarity
impl PartialEq for ScanPolarity
source§fn eq(&self, other: &ScanPolarity) -> bool
fn eq(&self, other: &ScanPolarity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ScanPolarity
impl PartialOrd for ScanPolarity
source§fn partial_cmp(&self, other: &ScanPolarity) -> Option<Ordering>
fn partial_cmp(&self, other: &ScanPolarity) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ScanPolarity
impl Eq for ScanPolarity
impl StructuralPartialEq for ScanPolarity
Auto Trait Implementations§
impl Freeze for ScanPolarity
impl RefUnwindSafe for ScanPolarity
impl Send for ScanPolarity
impl Sync for ScanPolarity
impl Unpin for ScanPolarity
impl UnwindSafe for ScanPolarity
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.