[][src]Struct ddbug_parser::ParameterType

pub struct ParameterType<'input> { /* fields omitted */ }

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]

The type of the parameter.

pub fn cmp_id(
    hash_a: &FileHash<'_>,
    a: &ParameterType<'_>,
    hash_b: &FileHash<'_>,
    b: &ParameterType<'_>
) -> Ordering
[src]

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]

impl<'input> Debug for ParameterType<'input>[src]

impl<'input> Default for 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.