pub struct Parameters(/* private fields */);Implementations§
Source§impl Parameters
impl Parameters
pub fn new(params: Vec<Parameter>) -> Self
pub fn get_num_args(&self) -> usize
pub fn get_parameters(&self) -> Vec<&Parameter>
pub fn take_parameters(self) -> Vec<Parameter>
pub fn revert_arguments(&self, args: Vec<Option<Tokens>>) -> Result<Vec<Token>>
Sourcepub fn revert_digested_arguments(
&self,
digested_args: &[Option<Digested>],
) -> Result<Vec<Token>>
pub fn revert_digested_arguments( &self, digested_args: &[Option<Digested>], ) -> Result<Vec<Token>>
Revert arguments from their digested form, using digested_reversion when available.
This allows parameter types (like BoxSpecification) to control reversion formatting
based on the structured digested data rather than token-level reversion.
Perl equivalent: $parameters->revertArguments($self->getArgs)
pub fn init(self) -> Result<Self>
pub fn read_arguments( &self, fordefn: Option<&dyn Definition>, ) -> Result<Vec<ArgWrap>>
pub fn read_arguments_and_digest( &self, fordefn: &Constructor, ) -> Result<Vec<Option<Digested>>>
pub fn reparse_argument(&self, value: ArgWrap) -> Result<Vec<ArgWrap>>
pub fn as_keysets(&self) -> Vec<String>
Trait Implementations§
Source§impl Clone for Parameters
impl Clone for Parameters
Source§fn clone(&self) -> Parameters
fn clone(&self) -> Parameters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Parameters
impl Debug for Parameters
Source§impl Default for Parameters
impl Default for Parameters
Source§fn default() -> Parameters
fn default() -> Parameters
Returns the “default value” for a type. Read more
Source§impl Display for Parameters
impl Display for Parameters
Source§impl Object for Parameters
impl Object for Parameters
fn stringify(&self) -> String
fn isa_box(&self) -> bool
fn is_expandable(&self) -> bool
fn is_definition(&self) -> bool
fn is_comment(&self) -> bool
fn be_digested(self) -> Result<Digested>
Source§fn get_locator(&self) -> Option<Locator>
fn get_locator(&self) -> Option<Locator>
The object’s stored source locator, if it has one.
None is the honest
“no recorded source position” (replacing the old Locator::default()
file!()/line!() sentinel). For “where the parser is now” (error
reporting, box creation), use the free fn gullet::get_locator().Source§impl PartialEq for Parameters
impl PartialEq for Parameters
Source§impl ToTokens for Parameters
Available on crate feature codegen only.
impl ToTokens for Parameters
Available on crate feature
codegen only.Source§fn to_tokens(&self, stream: &mut TokenStream)
fn to_tokens(&self, stream: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl !RefUnwindSafe for Parameters
impl !Send for Parameters
impl !Sync for Parameters
impl !UnwindSafe for Parameters
impl Freeze for Parameters
impl Unpin for Parameters
impl UnsafeUnpin for Parameters
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