Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LCMS2 Rust Wrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eduardo Trujillo
LCMS2 Rust Wrapper
Commits
3b785d26
Commit
3b785d26
authored
7 years ago
by
Kornel
Browse files
Options
Downloads
Patches
Plain Diff
Docs
parent
2449efd2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/flags.rs
+9
-0
9 additions, 0 deletions
src/flags.rs
with
9 additions
and
0 deletions
src/flags.rs
+
9
−
0
View file @
3b785d26
...
...
@@ -96,10 +96,19 @@ impl Default for Flags {
}
#[derive(Copy,
Clone,
Debug)]
#[doc(hidden)]
/// Special marker used to vary `Flags` at compile time
pub
struct
DisallowCache
;
#[derive(Copy,
Clone,
Debug)]
#[doc(hidden)]
/// Special marker used to vary `Flags` at compile time
pub
struct
AllowCache
;
/// Used by `Flags` to keep track whether `Flags::NO_CACHE` has been used,
/// which enables thread-safe sharing of `Transform`s.
///
/// Valid values are `AllowCache` and `DisallowCache`,
/// but you won't need to use them directly. Just use `Flags`' constants.
pub
trait
CacheFlag
:
Sized
{}
impl
CacheFlag
for
AllowCache
{}
impl
CacheFlag
for
DisallowCache
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment