pub enum PinPolarityParseError {
Empty,
Unknown,
}Expand description
Errors returned while parsing pin polarity.
Variants§
Empty
The polarity text was empty after trimming whitespace.
Unknown
The polarity was not part of the fixed vocabulary.
Trait Implementations§
Source§impl Clone for PinPolarityParseError
impl Clone for PinPolarityParseError
Source§fn clone(&self) -> PinPolarityParseError
fn clone(&self) -> PinPolarityParseError
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 PinPolarityParseError
impl Debug for PinPolarityParseError
Source§impl Display for PinPolarityParseError
impl Display for PinPolarityParseError
Source§impl Error for PinPolarityParseError
impl Error for PinPolarityParseError
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 PinPolarityParseError
impl PartialEq for PinPolarityParseError
Source§fn eq(&self, other: &PinPolarityParseError) -> bool
fn eq(&self, other: &PinPolarityParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PinPolarityParseError
impl Eq for PinPolarityParseError
impl StructuralPartialEq for PinPolarityParseError
Auto Trait Implementations§
impl Freeze for PinPolarityParseError
impl RefUnwindSafe for PinPolarityParseError
impl Send for PinPolarityParseError
impl Sync for PinPolarityParseError
impl Unpin for PinPolarityParseError
impl UnsafeUnpin for PinPolarityParseError
impl UnwindSafe for PinPolarityParseError
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