File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -1891,6 +1891,16 @@ macro_rules! impl_pos {
1891
1891
fn cmp( & self , other: & Self ) -> :: std:: cmp:: Ordering {
1892
1892
self . 0 . cmp( & other. 0 )
1893
1893
}
1894
+
1895
+ #[ inline( always) ]
1896
+ fn min( self , other: Self ) -> Self {
1897
+ Self ( self . 0 . min( other. 0 ) )
1898
+ }
1899
+
1900
+ #[ inline( always) ]
1901
+ fn max( self , other: Self ) -> Self {
1902
+ Self ( self . 0 . max( other. 0 ) )
1903
+ }
1894
1904
}
1895
1905
1896
1906
impl :: std:: cmp:: PartialOrd for $ident {
@@ -1908,7 +1918,17 @@ macro_rules! impl_pos {
1908
1918
fn le( & self , other: & Self ) -> bool {
1909
1919
self . 0 . le( & other. 0 )
1910
1920
}
1911
- }
1921
+
1922
+ #[ inline( always) ]
1923
+ fn gt( & self , other: & Self ) -> bool {
1924
+ self . 0 . gt( & other. 0 )
1925
+ }
1926
+
1927
+ #[ inline( always) ]
1928
+ fn ge( & self , other: & Self ) -> bool {
1929
+ self . 0 . ge( & other. 0 )
1930
+ }
1931
+ }
1912
1932
1913
1933
impl Pos for $ident {
1914
1934
#[ inline( always) ]
You can’t perform that action at this time.
0 commit comments