Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cache_ignore variant for cacheable enum #37

Open
AndreyErmilov opened this issue Feb 22, 2021 · 0 comments
Open

Add cache_ignore variant for cacheable enum #37

AndreyErmilov opened this issue Feb 22, 2021 · 0 comments

Comments

@AndreyErmilov
Copy link
Collaborator

Linked to #35
For case you need to cache some variants of enum we need macro parameter #[cache_ignore].

Example:

pub enum MyEnum {
    Success1(i32),
    Success2(i32),
    #[cache_ignore]
    Fail1(i32),
    #[cache_ignore]
    Fail2(i32),
}
@AndreyErmilov AndreyErmilov changed the title Add cache_ignore variant for enum Add cache_ignore variant for cacheable enum Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant