pub struct BuildConfig { /* private fields */ }Implementations§
Source§impl BuildConfig
impl BuildConfig
pub fn from_spec(spec: &ConfigSpec) -> Self
Sourcepub fn pragma(&mut self, pragma: impl Into<String>) -> &mut Self
pub fn pragma(&mut self, pragma: impl Into<String>) -> &mut Self
Register an additional attribute name that should be treated like #[pragma(...)].
Sourcepub fn derive(
&mut self,
name: impl Into<String>,
template: impl AsRef<str>,
) -> &mut Self
pub fn derive( &mut self, name: impl Into<String>, template: impl AsRef<str>, ) -> &mut Self
Register a custom derive name and its mustache template expansion.
pub fn module_derive( &mut self, extension: impl Into<String>, configure: impl FnOnce(&mut ModuleDeriveBuilder), ) -> &mut Self
Trait Implementations§
Source§impl Debug for BuildConfig
impl Debug for BuildConfig
Source§impl Default for BuildConfig
impl Default for BuildConfig
Source§fn default() -> BuildConfig
fn default() -> BuildConfig
Returns the “default value” for a type. Read more
Source§impl From<&ConfigSpec> for BuildConfig
impl From<&ConfigSpec> for BuildConfig
Source§fn from(spec: &ConfigSpec) -> Self
fn from(spec: &ConfigSpec) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BuildConfig
impl RefUnwindSafe for BuildConfig
impl !Send for BuildConfig
impl !Sync for BuildConfig
impl Unpin for BuildConfig
impl UnsafeUnpin for BuildConfig
impl UnwindSafe for BuildConfig
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