Add Copy action to code blocks in markdown example

This commit is contained in:
Héctor Ramón Jiménez 2025-02-04 20:58:06 +01:00
parent 387abafa3a
commit e8020f3eaf
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
9 changed files with 93 additions and 12 deletions

View file

@ -79,3 +79,11 @@ impl std::ops::Div<f32> for Pixels {
Pixels(self.0 / rhs)
}
}
impl std::ops::Div<u32> for Pixels {
type Output = Pixels;
fn div(self, rhs: u32) -> Self {
Pixels(self.0 / rhs as f32)
}
}