pub struct ParameterType<'input> { /* private fields */ }Expand description
The type of a function parameter.
Implementations§
Source§impl<'input> ParameterType<'input>
impl<'input> ParameterType<'input>
Sourcepub fn ty<'a>(
&self,
hash: &'a FileHash<'input>,
) -> Option<Cow<'a, Type<'input>>>
pub fn ty<'a>( &self, hash: &'a FileHash<'input>, ) -> Option<Cow<'a, Type<'input>>>
The type of the parameter.
Sourcepub fn cmp_id(
hash_a: &FileHash<'_>,
a: &ParameterType<'_>,
hash_b: &FileHash<'_>,
b: &ParameterType<'_>,
) -> Ordering
pub fn cmp_id( hash_a: &FileHash<'_>, a: &ParameterType<'_>, hash_b: &FileHash<'_>, b: &ParameterType<'_>, ) -> Ordering
Compare the identifying information of two types.
Parameters are considered equal if they have the same types. Parameter names are ignored.
Trait Implementations§
Source§impl<'input> Clone for ParameterType<'input>
impl<'input> Clone for ParameterType<'input>
Source§fn clone(&self) -> ParameterType<'input>
fn clone(&self) -> ParameterType<'input>
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<'input> Debug for ParameterType<'input>
impl<'input> Debug for ParameterType<'input>
Source§impl<'input> Default for ParameterType<'input>
impl<'input> Default for ParameterType<'input>
Source§fn default() -> ParameterType<'input>
fn default() -> ParameterType<'input>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'input> Freeze for ParameterType<'input>
impl<'input> RefUnwindSafe for ParameterType<'input>
impl<'input> Send for ParameterType<'input>
impl<'input> Sync for ParameterType<'input>
impl<'input> Unpin for ParameterType<'input>
impl<'input> UnwindSafe for ParameterType<'input>
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