Skip to content

Commit 0155002

Browse files
committed
more doc
1 parent 9d8e447 commit 0155002

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/edge_table.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,40 +83,40 @@ impl<'a> EdgeTable<'a> {
8383

8484
/// Return the ``parent`` value from row ``row`` of the table.
8585
///
86-
/// # Errors
86+
/// # Returns
8787
///
88-
/// Will return [``IndexError``](crate::TskitError::IndexError)
89-
/// if ``row`` is out of range.
88+
/// * `Some(parent)` if `u` is valid.
89+
/// * `None` otherwise.
9090
pub fn parent<E: Into<EdgeId> + Copy>(&'a self, row: E) -> Option<NodeId> {
9191
unsafe_tsk_column_access!(row.into().0, 0, self.num_rows(), self.table_.parent, NodeId)
9292
}
9393

9494
/// Return the ``child`` value from row ``row`` of the table.
9595
///
96-
/// # Errors
96+
/// # Returns
9797
///
98-
/// Will return [``IndexError``](crate::TskitError::IndexError)
99-
/// if ``row`` is out of range.
98+
/// * `Some(child)` if `u` is valid.
99+
/// * `None` otherwise.
100100
pub fn child<E: Into<EdgeId> + Copy>(&'a self, row: E) -> Option<NodeId> {
101101
unsafe_tsk_column_access!(row.into().0, 0, self.num_rows(), self.table_.child, NodeId)
102102
}
103103

104104
/// Return the ``left`` value from row ``row`` of the table.
105105
///
106-
/// # Errors
106+
/// # Returns
107107
///
108-
/// Will return [``IndexError``](crate::TskitError::IndexError)
109-
/// if ``row`` is out of range.
108+
/// * `Some(position)` if `u` is valid.
109+
/// * `None` otherwise.
110110
pub fn left<E: Into<EdgeId> + Copy>(&'a self, row: E) -> Option<Position> {
111111
unsafe_tsk_column_access!(row.into().0, 0, self.num_rows(), self.table_.left, Position)
112112
}
113113

114114
/// Return the ``right`` value from row ``row`` of the table.
115115
///
116-
/// # Errors
116+
/// # Returns
117117
///
118-
/// Will return [``IndexError``](crate::TskitError::IndexError)
119-
/// if ``row`` is out of range.
118+
/// * `Some(position)` if `u` is valid.
119+
/// * `None` otherwise.
120120
pub fn right<E: Into<EdgeId> + Copy>(&'a self, row: E) -> Option<Position> {
121121
unsafe_tsk_column_access_and_map_into!(row.into().0, 0, self.num_rows(), self.table_.right)
122122
}

0 commit comments

Comments
 (0)