From 3b785d2624334fc6d46afc0b8ae5880d78debd25 Mon Sep 17 00:00:00 2001 From: Kornel <kornel@geekhood.net> Date: Mon, 18 Dec 2017 04:18:20 +0000 Subject: [PATCH] Docs --- src/flags.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/flags.rs b/src/flags.rs index 38200a0..420b1f0 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -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 {} -- GitLab