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_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>
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
impl Info
pub fn codegen_name(&self) -> &str
pub fn is_special(&self) -> bool
pub fn should_be_doc_linked(&self, env: &Env) -> bool
pub fn should_docs_be_generated(&self, env: &Env) -> bool
pub fn doc_link( &self, parent: Option<&str>, visible_parent: Option<&str>, is_self: bool, ) -> String
pub fn is_async_finish(&self, env: &Env) -> bool
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more