pub enum ElectricalFilter {
Connected,
Unconnected,
Input,
Output,
Bidirectional,
Power,
Ground,
Passive,
OpenCollector,
OpenEmitter,
HiZ,
}Expand description
Electrical filter pseudo-selector (shared between systems).
These represent the electrical state filters that can be applied to pins.
Variants§
Connected
Pin is connected to a net
Unconnected
Pin is not connected (floating)
Input
Input pin
Output
Output pin
Bidirectional
Bidirectional pin
Power
Power pin
Ground
Ground connection
Passive
Passive pin
OpenCollector
Open collector pin
OpenEmitter
Open emitter pin
HiZ
High-impedance pin
Implementations§
Source§impl ElectricalFilter
impl ElectricalFilter
Sourcepub fn matches_type(&self, electrical_type: ElectricalType) -> bool
pub fn matches_type(&self, electrical_type: ElectricalType) -> bool
Check if an electrical type matches this filter.
Trait Implementations§
Source§impl Clone for ElectricalFilter
impl Clone for ElectricalFilter
Source§fn clone(&self) -> ElectricalFilter
fn clone(&self) -> ElectricalFilter
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 ElectricalFilter
impl Debug for ElectricalFilter
Source§impl PartialEq for ElectricalFilter
impl PartialEq for ElectricalFilter
impl Copy for ElectricalFilter
impl Eq for ElectricalFilter
impl StructuralPartialEq for ElectricalFilter
Auto Trait Implementations§
impl Freeze for ElectricalFilter
impl RefUnwindSafe for ElectricalFilter
impl Send for ElectricalFilter
impl Sync for ElectricalFilter
impl Unpin for ElectricalFilter
impl UnwindSafe for ElectricalFilter
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