pub enum ResistorKind {
Fixed,
Variable,
Potentiometer,
Thermistor,
Photoresistor,
Shunt,
PullUp,
PullDown,
Unknown,
Custom(String),
}Expand description
Descriptive resistor kind vocabulary.
Variants§
Trait Implementations§
Source§impl Clone for ResistorKind
impl Clone for ResistorKind
Source§fn clone(&self) -> ResistorKind
fn clone(&self) -> ResistorKind
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 ResistorKind
impl Debug for ResistorKind
Source§impl Display for ResistorKind
impl Display for ResistorKind
Source§impl FromStr for ResistorKind
impl FromStr for ResistorKind
Source§impl Hash for ResistorKind
impl Hash for ResistorKind
Source§impl Ord for ResistorKind
impl Ord for ResistorKind
Source§fn cmp(&self, other: &ResistorKind) -> Ordering
fn cmp(&self, other: &ResistorKind) -> Ordering
1.21.0 (const: unstable) · 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 ResistorKind
impl PartialEq for ResistorKind
Source§fn eq(&self, other: &ResistorKind) -> bool
fn eq(&self, other: &ResistorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ResistorKind
impl PartialOrd for ResistorKind
impl Eq for ResistorKind
impl StructuralPartialEq for ResistorKind
Auto Trait Implementations§
impl Freeze for ResistorKind
impl RefUnwindSafe for ResistorKind
impl Send for ResistorKind
impl Sync for ResistorKind
impl Unpin for ResistorKind
impl UnsafeUnpin for ResistorKind
impl UnwindSafe for ResistorKind
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