pub struct ModuleToTokensConfig {
pub structs_filter: Option<HashSet<String>>,
pub gen_glam: bool,
pub gen_encase: bool,
pub gen_naga: bool,
}Expand description
The configuration required to create a token stream describing a module.
Fields§
§structs_filter: Option<HashSet<String>>A filter on the structs to expose. This is useful specifically when using the encase feature,
since many structs can’t be encoded or decoded. It is therefore the using crate’s responsibility
to expose this in some way, for example by having structs that should be exported to Rust require
an attribute.
gen_glam: boolGenerate glam types.
gen_encase: boolGenerate encase types.
gen_naga: boolGenerate naga types.
Trait Implementations§
Source§impl Default for ModuleToTokensConfig
impl Default for ModuleToTokensConfig
Source§fn default() -> ModuleToTokensConfig
fn default() -> ModuleToTokensConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModuleToTokensConfig
impl RefUnwindSafe for ModuleToTokensConfig
impl Send for ModuleToTokensConfig
impl Sync for ModuleToTokensConfig
impl Unpin for ModuleToTokensConfig
impl UnsafeUnpin for ModuleToTokensConfig
impl UnwindSafe for ModuleToTokensConfig
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