Skip to main content

CRole

Enum CRole 

Source
pub enum CRole {
    Enumerator,
    Enum,
    Function,
    FunctionParam,
    Member,
    Macro,
    Var,
    Type,
    Struct,
    Union,
}
Expand description

Describes a C role that has been observed in the wild, i.e. one of the known inventory file declared at least one line with the type c:{role} if you would like one added please open a feature request

Variants§

§

Enumerator

Describes a C enumerator see also the sphinx docs

§

Enum

Describes a C enum see also the sphinx docs

§

Function

Describes a C function with a signature as written in C see also the sphinx docs

§

FunctionParam

see also the sphinx docs

§

Member

A C variable, is an alias for CRole::Var see also the sphinx docs

§

Macro

Describes a C macro, i.e. a #define without the replacement text see also the sphinx docs

§

Var

A C variable, equivalent to CRole::Member see also the sphinx docs

§

Type

Describes a C type as defined by either a typedef or alias see also the sphinx docs

§

Struct

Describes a C struct see also the sphinx docs

§

Union

Describes a C union see also the sphinx docs

Trait Implementations§

Source§

impl Debug for CRole

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for CRole

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromStr for CRole

Source§

type Err = ContextError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl PartialEq for CRole

Source§

fn eq(&self, other: &CRole) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

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

impl StructuralPartialEq for CRole

Auto Trait Implementations§

§

impl Freeze for CRole

§

impl RefUnwindSafe for CRole

§

impl Send for CRole

§

impl Sync for CRole

§

impl Unpin for CRole

§

impl UnsafeUnpin for CRole

§

impl UnwindSafe for CRole

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.