@@ -41,7 +41,7 @@ impl FuncType {
4141 ///
4242 /// # Returns
4343 /// - `true` if the `FuncType` is `Get`; otherwise, `false`.
44- #[ inline]
44+ #[ inline( always ) ]
4545 pub fn is_get ( & self ) -> bool {
4646 * self == FuncType :: Get
4747 }
@@ -53,7 +53,7 @@ impl FuncType {
5353 ///
5454 /// # Returns
5555 /// - `true` if the `FuncType` is `GetMut`; otherwise, `false`.
56- #[ inline]
56+ #[ inline( always ) ]
5757 pub fn is_get_mut ( & self ) -> bool {
5858 * self == FuncType :: GetMut
5959 }
@@ -65,7 +65,7 @@ impl FuncType {
6565 ///
6666 /// # Returns
6767 /// - `true` if the `FuncType` is `Set`; otherwise, `false`.
68- #[ inline]
68+ #[ inline( always ) ]
6969 pub fn is_set ( & self ) -> bool {
7070 * self == FuncType :: Set
7171 }
@@ -77,7 +77,7 @@ impl FuncType {
7777 ///
7878 /// # Returns
7979 /// - `true` if the `FuncType` is `Debug`; otherwise, `false`.
80- #[ inline]
80+ #[ inline( always ) ]
8181 pub fn is_debug ( & self ) -> bool {
8282 * self == FuncType :: Debug
8383 }
@@ -89,7 +89,7 @@ impl FuncType {
8989 ///
9090 /// # Returns
9191 /// - `true` if the `FuncType` is `Unknown`; otherwise, `false`.
92- #[ inline]
92+ #[ inline( always ) ]
9393 pub fn is_unknown ( & self ) -> bool {
9494 * self == Self :: Unknown
9595 }
@@ -101,7 +101,7 @@ impl FuncType {
101101 ///
102102 /// # Returns
103103 /// - `true` if the `FuncType` parsed from the string is not `Unknown`; otherwise, `false`.
104- #[ inline]
104+ #[ inline( always ) ]
105105 pub fn is_known ( func_type_str : & str ) -> bool {
106106 let func_type: FuncType = func_type_str. parse :: < FuncType > ( ) . unwrap_or_default ( ) ;
107107 func_type != Self :: Unknown
0 commit comments