pub struct PortTable { /* private fields */ }Expand description
端口表:把 YAML 的端口声明整理成「序号 ↔ 名字 ↔ (tag,index)」三向查询。
扁平序号 = 声明顺序(ADR #17)。
Implementations§
Source§impl PortTable
impl PortTable
pub fn build(decls: &[String], what: &str) -> Result<Self>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn name(&self, flat: usize) -> Option<&str>
pub fn names(&self) -> &[String]
pub fn id_by_tag(&self, tag: &str, index: usize) -> Option<usize>
pub fn index_by_name(&self, name: &str) -> Option<usize>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PortTable
impl RefUnwindSafe for PortTable
impl Send for PortTable
impl Sync for PortTable
impl Unpin for PortTable
impl UnsafeUnpin for PortTable
impl UnwindSafe for PortTable
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