Struct windows_bindgen::Gen
source · [−]pub struct Gen<'a> {
pub reader: &'a Reader<'a>,
pub namespace: &'a str,
pub sys: bool,
pub flatten: bool,
pub cfg: bool,
pub doc: bool,
pub min_enum: bool,
pub min_inherit: bool,
pub min_xaml: bool,
pub windows_extern: bool,
pub component: bool,
}
Fields
reader: &'a Reader<'a>
namespace: &'a str
sys: bool
flatten: bool
cfg: bool
doc: bool
min_enum: bool
min_inherit: bool
min_xaml: bool
windows_extern: bool
component: bool
Implementations
sourceimpl<'a> Gen<'a>
impl<'a> Gen<'a>
pub fn new(reader: &'a Reader<'_>) -> Self
pub fn type_def_name(&self, def: TypeDef, generics: &[Type]) -> TokenStream
pub fn type_def_vtbl_name(&self, def: TypeDef, generics: &[Type]) -> TokenStream
pub fn type_def_name_imp(
&self,
def: TypeDef,
generics: &[Type],
suffix: &str
) -> TokenStream
pub fn type_default_name(&self, ty: &Type) -> TokenStream
pub fn type_vtbl_name(&self, ty: &Type) -> TokenStream
pub fn type_abi_name(&self, ty: &Type) -> TokenStream
pub fn generic_phantoms(&self, generics: &[Type]) -> TokenStream
pub fn generic_named_phantoms(&self, generics: &[Type]) -> Vec<TokenStream>
pub fn generic_constraints(&self, generics: &[Type]) -> TokenStream
pub fn generic_names(&self, generics: &[Type]) -> TokenStream
sourcepub fn generic_params<'b>(
&'b self,
params: &'b [SignatureParam]
) -> impl Iterator<Item = (usize, &SignatureParam)> + 'b
pub fn generic_params<'b>(
&'b self,
params: &'b [SignatureParam]
) -> impl Iterator<Item = (usize, &SignatureParam)> + 'b
The signature params which are generic (along with their relative index)
sourcepub fn constraint_generics(&self, params: &[SignatureParam]) -> TokenStream
pub fn constraint_generics(&self, params: &[SignatureParam]) -> TokenStream
The generic param names (i.e., T
in fn foo<T>()
)
sourcepub fn where_clause(&self, params: &[SignatureParam]) -> TokenStream
pub fn where_clause(&self, params: &[SignatureParam]) -> TokenStream
A where
clause for some constrained generic params
pub fn param_constraints(&self, params: &[SignatureParam]) -> TokenStream
pub fn value(&self, value: &Value) -> TokenStream
pub fn typed_value(&self, value: &Value) -> TokenStream
pub fn guid(&self, value: &GUID) -> TokenStream
pub fn interface_core_traits(
&self,
def: TypeDef,
_generics: &[Type],
ident: &TokenStream,
constraints: &TokenStream,
phantoms: &TokenStream,
features: &TokenStream
) -> TokenStream
pub fn agile(
&self,
def: TypeDef,
ident: &TokenStream,
constraints: &TokenStream,
features: &TokenStream
) -> TokenStream
pub fn async_get(
&self,
def: TypeDef,
generics: &[Type],
ident: &TokenStream,
constraints: &TokenStream,
_phantoms: &TokenStream,
features: &TokenStream
) -> TokenStream
pub fn interface_winrt_trait(
&self,
def: TypeDef,
generics: &[Type],
ident: &TokenStream,
constraints: &TokenStream,
_phantoms: &TokenStream,
features: &TokenStream
) -> TokenStream
pub fn runtime_name_trait(
&self,
def: TypeDef,
_generics: &[Type],
name: &TokenStream,
constraints: &TokenStream,
features: &TokenStream
) -> TokenStream
pub fn interface_trait(
&self,
def: TypeDef,
generics: &[Type],
ident: &TokenStream,
constraints: &TokenStream,
features: &TokenStream
) -> TokenStream
pub fn interface_vtbl(
&self,
def: TypeDef,
generics: &[Type],
_ident: &TokenStream,
constraints: &TokenStream,
features: &TokenStream
) -> TokenStream
pub fn vtbl_signature(
&self,
def: TypeDef,
_generics: &[Type],
signature: &Signature
) -> TokenStream
pub fn param_name(&self, param: Param) -> TokenStream
pub fn return_sig(&self, signature: &Signature) -> TokenStream
pub fn win32_args(
&self,
params: &[SignatureParam],
kind: SignatureKind
) -> TokenStream
pub fn win32_params(
&self,
params: &[SignatureParam],
kind: SignatureKind
) -> TokenStream
pub fn impl_signature(&self, def: TypeDef, signature: &Signature) -> TokenStream
Auto Trait Implementations
impl<'a> RefUnwindSafe for Gen<'a>
impl<'a> Send for Gen<'a>
impl<'a> Sync for Gen<'a>
impl<'a> Unpin for Gen<'a>
impl<'a> UnwindSafe for Gen<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more