pub struct ParameterSpecifier<'a> {
pub span: &'a str,
pub ty: TypeSpecifier<'a>,
pub storage: Option<Storage>,
pub indexed: bool,
pub name: Option<&'a str>,
}Available on crate feature
json-abi only.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§
Source§impl<'a> ParameterSpecifier<'a>
impl<'a> ParameterSpecifier<'a>
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 Specifier<DynSolType> for ParameterSpecifier<'_>
impl Specifier<DynSolType> for ParameterSpecifier<'_>
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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: 120 bytes