pub struct LibrarySignatures { /* private fields */ }
Expand description

A representation of all the primitive definitions found while parsing the root program.

Implementations

Add a new inline primitive to the context. Panics if a primitive with the same name is already defined.

Add a new, non-inline primitive to the context. Panics if a primitive with the same name is already defined. Requires that the file path is absolute and canonical.

Return the Primitive associated with the given name if defined, otherwise return None.

Return the Primitive associated to this Id.

Mark an inlined primitive as a part of the source. This is useful when using file mode compilation and printing only the source primitives. Panics if the primitive is not defined.

Marks an imported extern block as a part of the source. There is no way to mark an individual primitive as a part of the source since the entire file will be linked. Panics if the file path is not defined

Return an iterator over all defined primitives.

Returns all the underlying primitive information. If you want all the signatures, use LibrarySignatures::signatures instead.

Return the underyling inlined primitives and whether they are source defined

Return the paths for the extern defining files along with whether they are source defined.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. 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.