NamedTypeReference in binaryninja::types - Rust

Struct NamedTypeReference

Source

pub struct NamedTypeReference { /* private fields */ }
Source§
Source

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.

Source

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.

Source
Source
Source
Source

Type referenced by this NamedTypeReference.

Will return None if the reference is cyclic, or the target type does not exist.

Source§
Source§
Source§
Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§
Source§

The resulting type after obtaining ownership.

Source§

Creates owned data from borrowed data, usually by cloning. Read more

1.63.0 · Source§

Uses borrowed data to replace owned data, usually by cloning. Read more

Source§
Source§

§
§
§
§
§
§