[−][src]Struct ddbug_parser::ParameterType
The type of a function parameter.
Implementations
impl<'input> ParameterType<'input>
[src]
pub fn name(&self) -> Option<&'input str>
[src]
The name of the parameter.
pub fn ty<'a>(
&self,
hash: &'a FileHash<'input>
) -> Option<Cow<'a, Type<'input>>>
[src]
&self,
hash: &'a FileHash<'input>
) -> Option<Cow<'a, Type<'input>>>
The type of the parameter.
pub fn cmp_id(
hash_a: &FileHash<'_>,
a: &ParameterType<'_>,
hash_b: &FileHash<'_>,
b: &ParameterType<'_>
) -> Ordering
[src]
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
impl<'input> Clone for ParameterType<'input>
[src]
pub fn clone(&self) -> ParameterType<'input>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'input> Debug for ParameterType<'input>
[src]
impl<'input> Default for ParameterType<'input>
[src]
pub fn default() -> ParameterType<'input>
[src]
Auto Trait Implementations
impl<'input> RefUnwindSafe for ParameterType<'input>
[src]
impl<'input> Send for ParameterType<'input>
[src]
impl<'input> Sync for ParameterType<'input>
[src]
impl<'input> Unpin for ParameterType<'input>
[src]
impl<'input> UnwindSafe for ParameterType<'input>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,