pub enum ElectricalType {
Input,
Output,
InputOutput,
Passive,
Power,
OpenCollector,
OpenEmitter,
HiZ,
Unknown,
}Expand description
Electrical type for pins (shared between systems).
Variants§
Implementations§
Source§impl ElectricalType
impl ElectricalType
Sourcepub fn from_pin_electrical(pe: PinElectricalType) -> Self
pub fn from_pin_electrical(pe: PinElectricalType) -> Self
Convert from Altium’s PinElectricalType.
Trait Implementations§
Source§impl Clone for ElectricalType
impl Clone for ElectricalType
Source§fn clone(&self) -> ElectricalType
fn clone(&self) -> ElectricalType
Returns a duplicate 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 ElectricalType
impl Debug for ElectricalType
Source§impl Display for ElectricalType
impl Display for ElectricalType
Source§impl Hash for ElectricalType
impl Hash for ElectricalType
Source§impl PartialEq for ElectricalType
impl PartialEq for ElectricalType
impl Copy for ElectricalType
impl Eq for ElectricalType
impl StructuralPartialEq for ElectricalType
Auto Trait Implementations§
impl Freeze for ElectricalType
impl RefUnwindSafe for ElectricalType
impl Send for ElectricalType
impl Sync for ElectricalType
impl Unpin for ElectricalType
impl UnwindSafe for ElectricalType
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more