pub enum RecordMatcher {
Any,
Type(RecordType),
Designator(Pattern),
PartNumber(Pattern),
Net(Pattern),
Value(Pattern),
Sheet(Pattern),
Pin {
component: Pattern,
pin: Pattern,
},
NetConnected {
net: Pattern,
target: NetConnectedTarget,
},
DesignatorWithValue {
designator: Pattern,
value: Pattern,
},
}Expand description
What records a segment matches.
Variants§
Any
Match any record type: *
Type(RecordType)
Match specific record type: component, pin, wire
Designator(Pattern)
Match by designator pattern: U1, R*, C??
PartNumber(Pattern)
Match by part number / library reference: $LM358, $STM32*
Net(Pattern)
Match by net name: ~VCC, ~SPI_*
Value(Pattern)
Match by value parameter: @10K, @100nF
Sheet(Pattern)
Match by sheet name: #Power, #Analog
Pin
Pin access: U1:3, U1:VCC, R*:1
NetConnected
Net connectivity query: ~VCC:pins, ~GND:components
DesignatorWithValue
Combined designator + value: R*@10K
Trait Implementations§
Source§impl Clone for RecordMatcher
impl Clone for RecordMatcher
Source§fn clone(&self) -> RecordMatcher
fn clone(&self) -> RecordMatcher
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 moreAuto Trait Implementations§
impl Freeze for RecordMatcher
impl RefUnwindSafe for RecordMatcher
impl Send for RecordMatcher
impl Sync for RecordMatcher
impl Unpin for RecordMatcher
impl UnwindSafe for RecordMatcher
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<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