Add Copy action to code blocks in markdown example
This commit is contained in:
parent
387abafa3a
commit
e8020f3eaf
9 changed files with 93 additions and 12 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue