Struct libgir::analysis::functions::Info

source ·
pub struct Info {
Show 34 fields pub name: String, pub func_name: String, pub new_name: Option<String>, pub glib_name: String, pub status: GStatus, pub kind: FunctionKind, pub visibility: Visibility, pub type_name: Result, pub parameters: Parameters, pub ret: Info, pub bounds: Bounds, pub outs: Info, pub version: Option<Version>, pub deprecated_version: Option<Version>, pub not_version: Option<Version>, pub cfg_condition: Option<String>, pub assertion: SafetyAssertionMode, pub doc_hidden: bool, pub doc_trait_name: Option<String>, pub doc_struct_name: Option<String>, pub doc_ignore_parameters: HashSet<String>, pub async: bool, pub unsafe_: bool, pub trampoline: Option<AsyncTrampoline>, pub callbacks: Vec<Trampoline>, pub destroys: Vec<Trampoline>, pub remove_params: Vec<usize>, pub async_future: Option<AsyncFuture>, pub hidden: bool, pub commented: bool, pub ns_id: NsId, pub generate_doc: bool, pub get_property: Option<String>, pub set_property: Option<String>,
}

Fields§

§name: String§func_name: String§new_name: Option<String>§glib_name: String§status: GStatus§kind: FunctionKind§visibility: Visibility§type_name: Result§parameters: Parameters§ret: Info§bounds: Bounds§outs: Info§version: Option<Version>§deprecated_version: Option<Version>§not_version: Option<Version>§cfg_condition: Option<String>§assertion: SafetyAssertionMode§doc_hidden: bool§doc_trait_name: Option<String>§doc_struct_name: Option<String>§doc_ignore_parameters: HashSet<String>§async: bool§unsafe_: bool§trampoline: Option<AsyncTrampoline>§callbacks: Vec<Trampoline>§destroys: Vec<Trampoline>§remove_params: Vec<usize>§async_future: Option<AsyncFuture>§hidden: bool

Whether the function is hidden (an implementation detail) Like the ref/unref/copy/free functions

§commented: bool

Whether the function can’t be generated

§ns_id: NsId

In order to generate docs links we need to know in which namespace this potential global function is defined

§generate_doc: bool§get_property: Option<String>§set_property: Option<String>

Implementations§

source§

impl Info

source

pub fn codegen_name(&self) -> &str

source

pub fn is_special(&self) -> bool

source

pub fn should_be_doc_linked(&self, env: &Env) -> bool

source

pub fn should_docs_be_generated(&self, env: &Env) -> bool

source

pub fn is_async_finish(&self, env: &Env) -> bool

Trait Implementations§

source§

impl Debug for Info

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Info

§

impl RefUnwindSafe for Info

§

impl Send for Info

§

impl Sync for Info

§

impl Unpin for Info

§

impl UnwindSafe for Info

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, 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.