pub struct Parameters { /* private fields */ }Implementations§
Source§impl Parameters
impl Parameters
pub fn new( param_names: &[String], file_id: Option<FileID>, file_location: FileLocation, ) -> Parameters
pub fn file_id(&self) -> &Option<FileID>
pub fn file_location(&self) -> &FileLocation
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &VariableName>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut VariableName>
pub fn contains(&self, param_name: &VariableName) -> bool
Trait Implementations§
Source§impl From<&Definition> for Parameters
impl From<&Definition> for Parameters
Source§fn from(definition: &Definition) -> Parameters
fn from(definition: &Definition) -> Parameters
Converts to this type from the input type.
Source§impl From<&FunctionData> for Parameters
impl From<&FunctionData> for Parameters
Source§fn from(function: &FunctionData) -> Parameters
fn from(function: &FunctionData) -> Parameters
Converts to this type from the input type.
Source§impl From<&TemplateData> for Parameters
impl From<&TemplateData> for Parameters
Source§fn from(template: &TemplateData) -> Parameters
fn from(template: &TemplateData) -> Parameters
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Parameters
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe 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