Trait LicenseTokens

Source
pub trait LicenseTokens {
    type TokenReplacementValues;

    // Required method
    fn replacement_pairs(
        replacements: Self::TokenReplacementValues,
    ) -> Vec<(&'static str, String)>;
}
Expand description

Tokens in license text to be replaced, e.g. yyyy which will be replaced with the copyright year.

Required Associated Types§

Source

type TokenReplacementValues

Struct holding the replacement values needed for the tokens used by the license

Required Methods§

Source

fn replacement_pairs( replacements: Self::TokenReplacementValues, ) -> Vec<(&'static str, String)>

List of (token to search for, replacement value).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§