pub struct CompileProvidersConfig {
pub provider: Option<String>,
pub probe_format: Option<String>,
pub module: Option<String>,
}
Fields§
§provider: Option<String>
§probe_format: Option<String>
§module: Option<String>
Implementations§
Source§impl CompileProvidersConfig
impl CompileProvidersConfig
Sourcepub fn format_probe(&self, probe_name: &str) -> String
pub fn format_probe(&self, probe_name: &str) -> String
Return the formatted name of a probe.
Sourcepub fn probe_ident(&self, probe_name: &str) -> Ident
pub fn probe_ident(&self, probe_name: &str) -> Ident
Return the formatted name of the probe as an identifier.
Sourcepub fn module_ident(&self) -> Ident
pub fn module_ident(&self) -> Ident
Return the formatted module name as an identifier.
Trait Implementations§
Source§impl Debug for CompileProvidersConfig
impl Debug for CompileProvidersConfig
Source§impl Default for CompileProvidersConfig
impl Default for CompileProvidersConfig
Source§fn default() -> CompileProvidersConfig
fn default() -> CompileProvidersConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompileProvidersConfig
impl<'de> Deserialize<'de> for CompileProvidersConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CompileProvidersConfig
impl RefUnwindSafe for CompileProvidersConfig
impl Send for CompileProvidersConfig
impl Sync for CompileProvidersConfig
impl Unpin for CompileProvidersConfig
impl UnwindSafe for CompileProvidersConfig
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