pub struct NamedTypeReference { /* private fields */ }

Implementations

Create an NTR to a type that did not come directly from a BinaryView’s types list. That is to say, if you’re referencing a new type you’re GOING to add, use this. You should not assign type ids yourself, that is the responsibility of the BinaryView implementation after your types have been added. Just make sure the names match up and the core will do the id stuff for you.

Create an NTR to a type with an existing type id, which generally means it came directly from a BinaryView’s types list and its id was looked up using BinaryView::get_type_id. You should not assign type ids yourself: if you use this to reference a type you are going to create but have not yet created, you may run into problems when giving your types to a BinaryView.

Returns the type referenced by this named type reference

Trait Implementations

Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.