File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " safety-net"
3- version = " 0.2.4 "
3+ version = " 0.2.5 "
44edition = " 2024"
55license = " MIT OR Apache-2.0"
66
Original file line number Diff line number Diff line change @@ -1114,6 +1114,20 @@ where
11141114 netlist. expose_net_with_name ( self . clone ( ) , name) ;
11151115 self
11161116 }
1117+
1118+ /// Returns the output position, if the net is the output of a gate.
1119+ pub fn get_output_index ( & self ) -> Option < usize > {
1120+ if self . netref . is_an_input ( ) {
1121+ None
1122+ } else {
1123+ Some ( self . pos )
1124+ }
1125+ }
1126+
1127+ /// Returns the [Instantiable] type driving this net, if it has a driver.
1128+ pub fn get_instance_type ( & self ) -> Option < Ref < ' _ , I > > {
1129+ self . netref . get_instance_type ( )
1130+ }
11171131}
11181132
11191133impl < I > std:: fmt:: Display for DrivenNet < I >
You can’t perform that action at this time.
0 commit comments