pub struct Details<'a> {
    pub location: Location,
    pub comments: Vec<Comment<'a>>,
    pub map: SourceMap,
}
Expand description

Additional details about a function parsed from a text string. These are useful for detecting test commands embedded in comments etc. The details to not affect the semantics of the function.

Fields

location: Location

Location of the function keyword that begins this function.

comments: Vec<Comment<'a>>

Annotation comments that appeared inside or after the function.

map: SourceMap

Mapping of entity numbers to source locations.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.