mizchi/crater/types does not have a README file
pub(all) struct BoundingRect {
x : Double
y : Double
width : Double
height : Double
}impl Show for BoundingRectpub(all) enum ClipRect {
Auto
Rect(Double, Double, Double, Double)
}pub(all) struct Color {
r : Int
g : Int
b : Int
a : Double
}pub(all) enum Dimension {
Length(Double)
Percent(Double)
Auto
MinContent
MaxContent
FitContent(Double)
}pub struct Line[T] {
start : T
end : T
}pub struct Point[T] {
x : T
y : T
}pub(all) struct Rect[T] {
left : T
right : T
top : T
bottom : T
}pub struct Size[T] {
width : T
height : T
}fn apply_aspect_ratio_height(width : Double, aspect_ratio : Double?) -> Double?fn apply_aspect_ratio_width(height : Double, aspect_ratio : Double?) -> Double?fn clamp(value : Double, min_val : Double, max_val : Double) -> Doublefn resolve_dimensions_with_aspect_ratio(width : Double?, height : Double?, aspect_ratio : Double?, min_width : Double, max_width : Double, min_height : Double, max_height : Double) -> (Double?, Double?)