Skip to content

Commit

Permalink
doc: Describe IntoRobj as an extention crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Mar 12, 2024
1 parent 330a0dc commit 130a34e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extendr-api/src/robj/into_robj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ impl From<&Robj> for Robj {
}
}

/// This is an extension trait to provide a convenience method `into_robj()`.
///
/// Defer to `From<T> for Robj`-impls if you have custom types.
///
pub trait IntoRobj {
fn into_robj(self) -> Robj;
}
Expand Down

0 comments on commit 130a34e

Please sign in to comment.