Skip to content

Commit f92a756

Browse files
Add doc aliases
1 parent d69231f commit f92a756

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pgrx/src/array.rs

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ where
5353
/// Number of elements in the Array, including nulls
5454
///
5555
/// Note that for many Arrays, this doesn't have a linear relationship with array byte-len.
56+
#[doc(alias = "cardinality")]
57+
#[doc(alias = "nelems")]
5658
pub fn count(&self) -> usize {
5759
self.as_raw().len()
5860
}
@@ -74,6 +76,7 @@ where
7476
T: ?Sized + BorrowDatum,
7577
{
7678
/// Iterate the array
79+
#[doc(alias = "unnest")]
7780
pub fn iter(&self) -> ArrayIter<'_, T> {
7881
let nelems = self.count();
7982
let raw = self.as_raw();

0 commit comments

Comments
 (0)