Skip to main content

IncludeMacro

Trait IncludeMacro 

Source
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§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a> IncludeMacro<'a> for IncludeBytesMacro<'a>

Available on crate feature executing only.
Source§

impl<'a> IncludeMacro<'a> for IncludeStrMacro<'a>

Available on crate feature executing only.