We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d69231f commit f92a756Copy full SHA for f92a756
pgrx/src/array.rs
@@ -53,6 +53,8 @@ where
53
/// Number of elements in the Array, including nulls
54
///
55
/// Note that for many Arrays, this doesn't have a linear relationship with array byte-len.
56
+ #[doc(alias = "cardinality")]
57
+ #[doc(alias = "nelems")]
58
pub fn count(&self) -> usize {
59
self.as_raw().len()
60
}
@@ -74,6 +76,7 @@ where
74
76
T: ?Sized + BorrowDatum,
75
77
{
78
/// Iterate the array
79
+ #[doc(alias = "unnest")]
80
pub fn iter(&self) -> ArrayIter<'_, T> {
81
let nelems = self.count();
82
let raw = self.as_raw();
0 commit comments