Documentation changes
This commit is contained in:
parent
67ab4fd8c0
commit
d53e262425
1 changed files with 4 additions and 1 deletions
|
|
@ -181,9 +181,12 @@ impl Builder {
|
||||||
#[derive(Debug, thiserror::Error)]
|
#[derive(Debug, thiserror::Error)]
|
||||||
pub enum BuilderError {
|
pub enum BuilderError {
|
||||||
#[error("Gradients must contain at least one color stop.")]
|
#[error("Gradients must contain at least one color stop.")]
|
||||||
|
/// Gradients must contain at least one color stop.
|
||||||
MissingColorStop,
|
MissingColorStop,
|
||||||
#[error("Offset {0} must be a unique, finite number.")]
|
#[error("Offset {0} must be a unique, finite number.")]
|
||||||
|
/// Offsets in a gradient must all be unique & finite.
|
||||||
DuplicateOffset(f32),
|
DuplicateOffset(f32),
|
||||||
#[error("Offset {0} must be within 0.0..=1.0.")]
|
#[error("Offset {0} must be between 0.0..=1.0.")]
|
||||||
|
/// Offsets in a gradient must be between 0.0..=1.0.
|
||||||
InvalidOffset(f32),
|
InvalidOffset(f32),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue