From 8740f475d759bc80af2f79e2d11cad96b09eb60e Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Fri, 20 Dec 2024 17:08:13 +0100 Subject: [PATCH] docs: added the defaults for some `Options` (#661) There are some parts of the `Options`-struct that miss the defaults. I also made sure that `Interlacing` is a link --- src/options.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/options.rs b/src/options.rs index 152737b3..f2cf7c51 100644 --- a/src/options.rs +++ b/src/options.rs @@ -97,13 +97,16 @@ pub struct Options { pub filter: IndexSet, /// Whether to change the interlacing type of the file. /// - /// `None` will not change the current interlacing type. - /// - /// `Some(x)` will change the file to interlacing mode `x`. + /// These are the interlacing types avaliable: + /// - `None` will not change the current interlacing type. + /// - `Some(x)` will change the file to interlacing mode `x`. + /// See [`Interlacing`] for the possible interlacing types. /// /// Default: `Some(Interlacing::None)` pub interlace: Option, /// Whether to allow transparent pixels to be altered to improve compression. + /// + /// Default: `false` pub optimize_alpha: bool, /// Whether to attempt bit depth reduction /// @@ -145,9 +148,10 @@ pub struct Options { /// /// Default: `true` pub fast_evaluation: bool, - /// Maximum amount of time to spend on optimizations. /// Further potential optimizations are skipped if the timeout is exceeded. + /// + /// Default: `None` pub timeout: Option, }