pub struct ChipName(pub Option<usize>);Expand description
Names the chip of an M4 system that a diagnostic is about: chip #3, or the main chip.
The main chip is not one of the numbered chips, so it has no index. The frontend’s circuit form numbers its chips the same way, so its diagnostics name them through this too.
Tuple Fields§
§0: Option<usize>Trait Implementations§
impl Copy for ChipName
impl Eq for ChipName
impl StructuralPartialEq for ChipName
Auto Trait Implementations§
impl Freeze for ChipName
impl RefUnwindSafe for ChipName
impl Send for ChipName
impl Sync for ChipName
impl Unpin for ChipName
impl UnsafeUnpin for ChipName
impl UnwindSafe for ChipName
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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