11use crate :: bindings as ll_bindings;
2+ use crate :: sys;
23use crate :: tsk_id_t;
34use crate :: tsk_size_t;
45use crate :: NodeId ;
@@ -297,15 +298,15 @@ impl TreeInterface {
297298 fn left_sample < N : Into < NodeId > + Copy > ( & self , u : N ) -> Option < NodeId > {
298299 // SAFETY: internal pointer cannot be NULL
299300 let ptr = unsafe { * self . as_ptr ( ) } ;
300- unsafe_tsk_column_access ! ( u. into( ) , 0 , self . num_nodes, ptr , left_sample , NodeId )
301+ sys :: tsk_column_access :: < NodeId , _ , _ , _ > ( u. into ( ) , ptr . left_sample , self . num_nodes )
301302 }
302303
303304 // error if we are not tracking samples,
304305 // Ok(None) if u is out of range
305306 fn right_sample < N : Into < NodeId > + Copy > ( & self , u : N ) -> Option < NodeId > {
306307 // SAFETY: internal pointer cannot be NULL
307308 let ptr = unsafe { * self . as_ptr ( ) } ;
308- unsafe_tsk_column_access ! ( u. into( ) , 0 , self . num_nodes, ptr , right_sample , NodeId )
309+ sys :: tsk_column_access :: < NodeId , _ , _ , _ > ( u. into ( ) , ptr . right_sample , self . num_nodes )
309310 }
310311
311312 /// Return the `[left, right)` coordinates of the tree.
@@ -330,7 +331,7 @@ impl TreeInterface {
330331 pub fn parent < N : Into < NodeId > + Copy > ( & self , u : N ) -> Option < NodeId > {
331332 // SAFETY: internal pointer cannot be NULL
332333 let ptr = unsafe { * self . as_ptr ( ) } ;
333- unsafe_tsk_column_access ! ( u. into( ) , 0 , self . array_len, ptr , parent , NodeId )
334+ sys :: tsk_column_access :: < NodeId , _ , _ , _ > ( u. into ( ) , ptr . parent , self . array_len )
334335 }
335336
336337 /// Get the left child of node `u`.
@@ -339,7 +340,7 @@ impl TreeInterface {
339340 pub fn left_child < N : Into < NodeId > + Copy > ( & self , u : N ) -> Option < NodeId > {
340341 // SAFETY: internal pointer cannot be NULL
341342 let ptr = unsafe { * self . as_ptr ( ) } ;
342- unsafe_tsk_column_access ! ( u. into( ) , 0 , self . array_len, ptr , left_child , NodeId )
343+ sys :: tsk_column_access :: < NodeId , _ , _ , _ > ( u. into ( ) , ptr . left_child , self . array_len )
343344 }
344345
345346 /// Get the right child of node `u`.
@@ -348,7 +349,7 @@ impl TreeInterface {
348349 pub fn right_child < N : Into < NodeId > + Copy > ( & self , u : N ) -> Option < NodeId > {
349350 // SAFETY: internal pointer cannot be NULL
350351 let ptr = unsafe { * self . as_ptr ( ) } ;
351- unsafe_tsk_column_access ! ( u. into( ) , 0 , self . array_len, ptr , right_child , NodeId )
352+ sys :: tsk_column_access :: < NodeId , _ , _ , _ > ( u. into ( ) , ptr . right_child , self . array_len )
352353 }
353354
354355 /// Get the left sib of node `u`.
@@ -357,7 +358,7 @@ impl TreeInterface {
357358 pub fn left_sib < N : Into < NodeId > + Copy > ( & self , u : N ) -> Option < NodeId > {
358359 // SAFETY: internal pointer cannot be NULL
359360 let ptr = unsafe { * self . as_ptr ( ) } ;
360- unsafe_tsk_column_access ! ( u. into( ) , 0 , self . array_len, ptr , left_sib , NodeId )
361+ sys :: tsk_column_access :: < NodeId , _ , _ , _ > ( u. into ( ) , ptr . left_sib , self . array_len )
361362 }
362363
363364 /// Get the right sib of node `u`.
@@ -366,7 +367,7 @@ impl TreeInterface {
366367 pub fn right_sib < N : Into < NodeId > + Copy > ( & self , u : N ) -> Option < NodeId > {
367368 // SAFETY: internal pointer cannot be NULL
368369 let ptr = unsafe { * self . as_ptr ( ) } ;
369- unsafe_tsk_column_access ! ( u. into( ) , 0 , self . array_len, ptr , right_sib , NodeId )
370+ sys :: tsk_column_access :: < NodeId , _ , _ , _ > ( u. into ( ) , ptr . right_sib , self . array_len )
370371 }
371372
372373 /// Obtain the list of samples for the current tree/tree sequence
0 commit comments