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 duplicate 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
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: 60 bytes