Skip to content

Commit

Permalink
Add doc to pvalue typed accessor methods (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 authored Aug 20, 2024
1 parent b64db91 commit b83c36d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vortex-scalar/src/pvalue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub enum PValue {
macro_rules! as_primitive {
($T:ty, $PT:tt) => {
paste! {
#[doc = "Access PValue as `" $T "`, returning `None` if conversion is unsuccessful"]
pub fn [<as_ $T>](self) -> Option<$T> {
if let PValue::$PT(v) = self {
Some(v)
Expand Down

0 comments on commit b83c36d

Please sign in to comment.