Lines Matching defs:Size
12 pub struct Size { struct
19 impl Size { implementation
67 pub fn clamp(self, min: Size, max: Size) -> Self { in clamp()
97 pub fn round(self) -> Size { in round()
117 pub fn ceil(self) -> Size { in ceil()
137 pub fn floor(self) -> Size { in floor()
157 pub fn expand(self) -> Size { in expand()
177 pub fn trunc(self) -> Size { in trunc()
199 impl fmt::Debug for Size { implementation
205 impl fmt::Display for Size { implementation
215 impl MulAssign<f64> for Size { implementation
229 fn mul(self, other: Size) -> Size { in mul()
234 impl Mul<f64> for Size { implementation
238 fn mul(self, other: f64) -> Size { in mul()
246 impl DivAssign<f64> for Size { implementation
256 impl Div<f64> for Size { implementation
260 fn div(self, other: f64) -> Size { in div()
268 impl Add<Size> for Size { implementation
271 fn add(self, other: Size) -> Size { in add()
279 impl AddAssign<Size> for Size { implementation
281 fn add_assign(&mut self, other: Size) { in add_assign()
286 impl Sub<Size> for Size { implementation
289 fn sub(self, other: Size) -> Size { in sub()
297 impl SubAssign<Size> for Size { implementation
299 fn sub_assign(&mut self, other: Size) { in sub_assign()
304 impl From<(f64, f64)> for Size { implementation
306 fn from(v: (f64, f64)) -> Size { in from() argument
324 fn into(self) -> Size { in into()