pub struct Parameters { /* private fields */ }Implementations
sourceimpl 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
sourceimpl From<&Definition> for Parameters
impl From<&Definition> for Parameters
sourcefn from(definition: &Definition) -> Parameters
fn from(definition: &Definition) -> Parameters
Converts to this type from the input type.
sourceimpl From<&FunctionData> for Parameters
impl From<&FunctionData> for Parameters
sourcefn from(function: &FunctionData) -> Parameters
fn from(function: &FunctionData) -> Parameters
Converts to this type from the input type.
sourceimpl From<&TemplateData> for Parameters
impl From<&TemplateData> for Parameters
sourcefn from(template: &TemplateData) -> Parameters
fn from(template: &TemplateData) -> Parameters
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more