pub struct MatchArgChoicesEntry {
pub placeholder: &'static str,
pub choices: &'static [&'static str],
pub preferred_default: &'static str,
pub aliases_placeholder: &'static str,
pub aliases: &'static [MatchArgAlias],
}Expand description
Entry for replacing match_arg placeholder defaults with actual choices.
Fields§
§placeholder: &'static strPlaceholder string in the R formal default, e.g. ".__MX_MATCH_ARG_CHOICES_mode__".
choices: &'static [&'static str]The parameter type’s MatchArg::CHOICES, unescaped.
preferred_default: &'static strUser-supplied default = "..." value (unquoted, e.g. "zstd"), or ""
if the user did not supply one. When non-empty, the write-time pass
moves this choice to the front of the formal (match_arg_formal),
so .miniextendr_match_arg() picks it for NULL and for the omitted
argument.
aliases_placeholder: &'static strPlaceholder for the trailing aliases = (and listed =) arguments
of the parameter’s .miniextendr_match_arg /
.miniextendr_match_arg_several call, e.g.
".__MX_MATCH_ARG_ALIASES_run_mode__". The writer replaces , and
it with match_arg_aliases_arg: nothing for a type without aliases.
aliases: &'static [MatchArgAlias]The parameter type’s MatchArg::ALIASES, unescaped.
Auto Trait Implementations§
impl Forget for MatchArgChoicesEntry
impl Freeze for MatchArgChoicesEntry
impl RefUnwindSafe for MatchArgChoicesEntry
impl Send for MatchArgChoicesEntry
impl Sync for MatchArgChoicesEntry
impl Unpin for MatchArgChoicesEntry
impl UnsafeUnpin for MatchArgChoicesEntry
impl UnwindSafe for MatchArgChoicesEntry
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
Source§impl<T> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
core_io_internals)[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool
#[doc(hidden)]const IS_ZST: bool
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout
#[doc(hidden)]const LAYOUT: Layout
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize
#[doc(hidden)]const MAX_SLICE_LEN: usize
sized_type_properties)[Self]. Read moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes