Enum DiscoveredItem
pub enum DiscoveredItem
Struct passed to ParseCallbacks::new_item_found containing information about discovered
items (struct, union, and alias)
Variants
-
Struct { original_name: Option<String>, final_name: String } Represents a struct with its original name in C and its generated binding name
-
Union { original_name: Option<String>, final_name: String } Represents a union with its original name in C and its generated binding name
-
Alias { alias_name: String, alias_for: DiscoveredItemId } Represents an alias like a typedef
typedef struct MyStruct StructAlias;Here, the name of the alias is
StructAliasand it's an alias forMyStruct-
Enum { final_name: String } Represents an enum.
-
Function { final_name: String } A function or method.
-
Method { final_name: String, parent: DiscoveredItemId } A method.
Trait Implementations
impl Clone for DiscoveredItem
fn clone(&self) -> DiscoveredItem
impl Debug for DiscoveredItem
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for DiscoveredItem
impl Hash for DiscoveredItem
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for DiscoveredItem
fn cmp(&self, other: &DiscoveredItem) -> Ordering
impl PartialEq for DiscoveredItem
fn eq(&self, other: &DiscoveredItem) -> bool
impl PartialOrd for DiscoveredItem
fn partial_cmp(&self, other: &DiscoveredItem) -> Option<Ordering>
impl StructuralPartialEq for DiscoveredItem
Auto Trait Implementations
impl Freeze for DiscoveredItem
impl RefUnwindSafe for DiscoveredItem
impl Send for DiscoveredItem
impl Sync for DiscoveredItem
impl Unpin for DiscoveredItem
impl UnsafeUnpin for DiscoveredItem
impl UnwindSafe for DiscoveredItem
Blanket Implementations
impl<T> Any for DiscoveredItem
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DiscoveredItem
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DiscoveredItem
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DiscoveredItem
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DiscoveredItem
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for DiscoveredItem
impl<T> ToOwned for DiscoveredItem
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for DiscoveredItem
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DiscoveredItem
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for DiscoveredItem
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>