pub(crate) struct ExtendrOptions {
pub r_name: Option<String>,
pub mod_name: Option<String>,
pub use_rng: bool,
}
Fields§
§r_name: Option<String>
§mod_name: Option<String>
§use_rng: bool
Implementations§
Source§impl ExtendrOptions
impl ExtendrOptions
Sourcepub fn parse(&mut self, meta: ParseNestedMeta<'_>) -> Result<()>
pub fn parse(&mut self, meta: ParseNestedMeta<'_>) -> Result<()>
Parse a set of attribute arguments for #[extendr(opts...)]
Supported options:
r_name = "name"
which specifies the name of the wrapper on the R-side.use_rng = bool
ensures the RNG-state is pulled and pushed
Trait Implementations§
Source§impl Debug for ExtendrOptions
impl Debug for ExtendrOptions
Source§impl Default for ExtendrOptions
impl Default for ExtendrOptions
Source§fn default() -> ExtendrOptions
fn default() -> ExtendrOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExtendrOptions
impl RefUnwindSafe for ExtendrOptions
impl Send for ExtendrOptions
impl Sync for ExtendrOptions
impl Unpin for ExtendrOptions
impl UnwindSafe for ExtendrOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more