Implement basic traits for AspectRatio (#12840)
				
					
				
			# Objective `AspectRatio` is a newtype of `f32`, so it can implement basic traits; `Copy`, `Clone`, `Debug`, `PartialEq` and `PartialOrd`. ## Solution Derive basic traits for `AspectRatio`.
This commit is contained in:
		
							parent
							
								
									cf092d45f9
								
							
						
					
					
						commit
						8092e2c86d
					
				| @ -3,6 +3,7 @@ | |||||||
| use crate::Vec2; | use crate::Vec2; | ||||||
| 
 | 
 | ||||||
| /// An `AspectRatio` is the ratio of width to height.
 | /// An `AspectRatio` is the ratio of width to height.
 | ||||||
|  | #[derive(Copy, Clone, Debug, PartialEq, PartialOrd)] | ||||||
| pub struct AspectRatio(f32); | pub struct AspectRatio(f32); | ||||||
| 
 | 
 | ||||||
| impl AspectRatio { | impl AspectRatio { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 mamekoro
						mamekoro