mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
add point(x: f32, y: f32) function
Shorter than writing `Point::new`
This commit is contained in:
@@ -19,6 +19,11 @@ pub struct Point {
|
||||
pub(crate) y: f32,
|
||||
}
|
||||
|
||||
/** An alias for `Point::new`. */
|
||||
pub fn point(x: f32, y: f32) -> Point {
|
||||
Point::new(x, y)
|
||||
}
|
||||
|
||||
/** Currently necessary because the external OneDReader proc macro uses it. */
|
||||
pub type RXingResultPoint = Point;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user