mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
demacroify io_header
This commit is contained in:
parent
a66a6a9669
commit
1fb5dfbe11
3 changed files with 57 additions and 47 deletions
|
|
@ -13,7 +13,7 @@ macro_rules! impl_port {
|
|||
}
|
||||
impl AsRef<Port<$Spec>> for $Name { fn as_ref (&self) -> &Port<$Spec> { &self.port } }
|
||||
impl $Name {
|
||||
pub fn name (&self) -> &str { self.name.as_ref() }
|
||||
pub fn name (&self) -> &Arc<str> { &self.name }
|
||||
pub fn port (&self) -> &Port<$Spec> { &self.port }
|
||||
pub fn port_mut (&mut self) -> &mut Port<$Spec> { &mut self.port }
|
||||
pub fn new ($jack: &Jack, name: impl AsRef<str>, connect: &[PortConnect])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue