pub enum CapacitorPolarityParseError {
Empty,
Unknown,
}Expand description
Errors returned while parsing capacitor 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 CapacitorPolarityParseError
impl Clone for CapacitorPolarityParseError
Source§fn clone(&self) -> CapacitorPolarityParseError
fn clone(&self) -> CapacitorPolarityParseError
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 CapacitorPolarityParseError
impl Debug for CapacitorPolarityParseError
Source§impl Error for CapacitorPolarityParseError
impl Error for CapacitorPolarityParseError
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 CapacitorPolarityParseError
impl PartialEq for CapacitorPolarityParseError
Source§fn eq(&self, other: &CapacitorPolarityParseError) -> bool
fn eq(&self, other: &CapacitorPolarityParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CapacitorPolarityParseError
impl Eq for CapacitorPolarityParseError
impl StructuralPartialEq for CapacitorPolarityParseError
Auto Trait Implementations§
impl Freeze for CapacitorPolarityParseError
impl RefUnwindSafe for CapacitorPolarityParseError
impl Send for CapacitorPolarityParseError
impl Sync for CapacitorPolarityParseError
impl Unpin for CapacitorPolarityParseError
impl UnsafeUnpin for CapacitorPolarityParseError
impl UnwindSafe for CapacitorPolarityParseError
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