pub trait IncludeMacro<'a>: Sized {
// Required method
fn get_inner_tokens(&self) -> Cow<'a, TokenStream>;
// Provided methods
fn get_lit_str(&self) -> Result<LitStr, Error> { ... }
fn get_string(&self) -> Result<String, Error> { ... }
fn get_path_buf(&self) -> Result<PathBuf, Error> { ... }
}Expand description
Implemented on Types that include an external file
Required Methods§
fn get_inner_tokens(&self) -> Cow<'a, TokenStream>
Provided Methods§
fn get_lit_str(&self) -> Result<LitStr, Error>
fn get_string(&self) -> Result<String, Error>
fn get_path_buf(&self) -> Result<PathBuf, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<'a> IncludeMacro<'a> for IncludeBytesMacro<'a>
Available on crate feature
executing only.impl<'a> IncludeMacro<'a> for IncludeStrMacro<'a>
Available on crate feature
executing only.