style: Document #[css(skip_if)]

This commit is contained in:
Emilio Cobos Álvarez 2018-03-07 11:57:58 +01:00
parent bf08c659a0
commit 951250882b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -34,6 +34,9 @@ use std::fmt::{self, Write};
/// dimension token, like: <member><identifier>;
/// * if `#[css(skip)]` is found on a field, the `ToCss` call for that field
/// is skipped;
/// * if `#[css(skip_if = "function")]` is found on a field, the `ToCss` call
/// for that field is skipped if `function` returns true. This function is
/// provided the field as an argument;
/// * finally, one can put `#[css(derive_debug)]` on the whole type, to
/// implement `Debug` by a single call to `ToCss::to_css`.
pub trait ToCss {