pub struct IOPinWithRole<Group, Role: Role> {
pub pin: IOPin,
/* private fields */
}
Expand description
Represents a TSC I/O pin with associated group and role information.
This type combines an tsc::IOPin
with phantom type parameters to statically
encode the pin’s group and role. This allows for type-safe operations
on TSC pins within their specific contexts.
Group
: A type parameter representing the TSC group (e.g.,G1
,G2
).Role
: A type parameter representing the pin’s role (e.g.,Channel
,Sample
).
Fields§
§pin: IOPin
The underlying TSC I/O pin.
Trait Implementations§
Source§impl<Group: Clone, Role: Clone + Role> Clone for IOPinWithRole<Group, Role>
impl<Group: Clone, Role: Clone + Role> Clone for IOPinWithRole<Group, Role>
Source§fn clone(&self) -> IOPinWithRole<Group, Role>
fn clone(&self) -> IOPinWithRole<Group, Role>
Returns a copy 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 moreimpl<Group: Copy, Role: Copy + Role> Copy for IOPinWithRole<Group, Role>
Auto Trait Implementations§
impl<Group, Role> Freeze for IOPinWithRole<Group, Role>
impl<Group, Role> RefUnwindSafe for IOPinWithRole<Group, Role>where
Group: RefUnwindSafe,
Role: RefUnwindSafe,
impl<Group, Role> Send for IOPinWithRole<Group, Role>
impl<Group, Role> Sync for IOPinWithRole<Group, Role>
impl<Group, Role> Unpin for IOPinWithRole<Group, Role>
impl<Group, Role> UnwindSafe for IOPinWithRole<Group, Role>where
Group: UnwindSafe,
Role: UnwindSafe,
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