pub enum DiodePolarityParseError {
Empty,
Unknown,
}Expand description
Errors returned while parsing diode polarity.
Variants§
Empty
The polarity was empty after trimming whitespace.
Unknown
The polarity was not part of the fixed vocabulary.
Trait Implementations§
Source§impl Clone for DiodePolarityParseError
impl Clone for DiodePolarityParseError
Source§fn clone(&self) -> DiodePolarityParseError
fn clone(&self) -> DiodePolarityParseError
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 DiodePolarityParseError
impl Debug for DiodePolarityParseError
Source§impl Display for DiodePolarityParseError
impl Display for DiodePolarityParseError
Source§impl Error for DiodePolarityParseError
impl Error for DiodePolarityParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for DiodePolarityParseError
impl PartialEq for DiodePolarityParseError
Source§fn eq(&self, other: &DiodePolarityParseError) -> bool
fn eq(&self, other: &DiodePolarityParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DiodePolarityParseError
impl Eq for DiodePolarityParseError
impl StructuralPartialEq for DiodePolarityParseError
Auto Trait Implementations§
impl Freeze for DiodePolarityParseError
impl RefUnwindSafe for DiodePolarityParseError
impl Send for DiodePolarityParseError
impl Sync for DiodePolarityParseError
impl Unpin for DiodePolarityParseError
impl UnsafeUnpin for DiodePolarityParseError
impl UnwindSafe for DiodePolarityParseError
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