From 410e5c6d6f02aa240bf78a5f1ee399092cd5550c Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 3 Jan 2017 14:35:51 +0100 Subject: [PATCH] Use documentation comments for PixelFormat. --- components/net_traits/image/base.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/components/net_traits/image/base.rs b/components/net_traits/image/base.rs index 78e89697714..fdcab3b2314 100644 --- a/components/net_traits/image/base.rs +++ b/components/net_traits/image/base.rs @@ -8,10 +8,14 @@ use webrender_traits; #[derive(Clone, Copy, Deserialize, Eq, PartialEq, Serialize, HeapSizeOf)] pub enum PixelFormat { - K8, // Luminance channel only - KA8, // Luminance + alpha - RGB8, // RGB, 8 bits per channel - RGBA8, // RGB + alpha, 8 bits per channel + /// Luminance channel only + K8, + /// Luminance + alpha + KA8, + /// RGB, 8 bits per channel + RGB8, + /// RGB + alpha, 8 bits per channel + RGBA8, } #[derive(Clone, Deserialize, Serialize, HeapSizeOf)]