pub struct PortName<I: ?Sized> { /* private fields */ }Expand description
The name a port is declared under, carrying the interface it demands.
#[port(put)] cmd_port: PutPort<Command> generates Tester::CMD_PORT, a
PortName<dyn PutIf<Command>>. The constant and the lookup key both come
from the one field, so they cannot drift; a misspelled constant does not
compile; and connecting a get export to it does not compile either,
because the interface is part of the type.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for PortName<I>where
I: ?Sized,
impl<I> RefUnwindSafe for PortName<I>where
I: ?Sized,
impl<I> Send for PortName<I>where
I: ?Sized,
impl<I> Sync for PortName<I>where
I: ?Sized,
impl<I> Unpin for PortName<I>where
I: ?Sized,
impl<I> UnsafeUnpin for PortName<I>where
I: ?Sized,
impl<I> UnwindSafe for PortName<I>where
I: ?Sized,
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