pub struct ParameterSpecifier<'a> {
pub span: &'a str,
pub ty: TypeSpecifier<'a>,
pub storage: Option<Storage>,
pub indexed: bool,
pub name: Option<&'a str>,
}Expand description
Represents a function parameter.
Fields§
§span: &'a strThe full span of the specifier.
ty: TypeSpecifier<'a>The type of the parameter.
storage: Option<Storage>The storage specifier.
indexed: boolWhether the parameter indexed.
name: Option<&'a str>The name of the parameter.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ParameterSpecifier<'a>
impl<'a> Clone for ParameterSpecifier<'a>
Source§fn clone(&self) -> ParameterSpecifier<'a>
fn clone(&self) -> ParameterSpecifier<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ParameterSpecifier<'a>
impl<'a> Debug for ParameterSpecifier<'a>
Source§impl<'a> PartialEq for ParameterSpecifier<'a>
impl<'a> PartialEq for ParameterSpecifier<'a>
Source§impl<'a> TryFrom<&'a str> for ParameterSpecifier<'a>
impl<'a> TryFrom<&'a str> for ParameterSpecifier<'a>
impl<'a> Eq for ParameterSpecifier<'a>
impl<'a> StructuralPartialEq for ParameterSpecifier<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParameterSpecifier<'a>
impl<'a> RefUnwindSafe for ParameterSpecifier<'a>
impl<'a> Send for ParameterSpecifier<'a>
impl<'a> Sync for ParameterSpecifier<'a>
impl<'a> Unpin for ParameterSpecifier<'a>
impl<'a> UnwindSafe for ParameterSpecifier<'a>
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