pub enum PortDirection {
Input,
Output,
Inout,
Ref,
}Expand description
The directions a module-level port can declare
(sv_lang::ArgumentDirection::{In,Out,InOut,Ref}). A Ref port (LRM
1800-2023 23.2.2.3) is not a connection at all: the port variable IS the
variable it is connected to (23.3.3.2, “references to the port variable
shall be treated as hierarchical references to the variable to which it is
connected”), so it has no driver and no continuous assignment.
Variants§
Trait Implementations§
Source§impl Clone for PortDirection
impl Clone for PortDirection
impl Copy for PortDirection
Source§impl Debug for PortDirection
impl Debug for PortDirection
impl Eq for PortDirection
Source§impl PartialEq for PortDirection
impl PartialEq for PortDirection
impl StructuralPartialEq for PortDirection
Auto Trait Implementations§
impl Freeze for PortDirection
impl RefUnwindSafe for PortDirection
impl Send for PortDirection
impl Sync for PortDirection
impl Unpin for PortDirection
impl UnsafeUnpin for PortDirection
impl UnwindSafe for PortDirection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.