@@ -41,6 +41,7 @@ impl FuncType {
4141 ///
4242 /// # Returns
4343 /// - `true` if the `FuncType` is `Get`; otherwise, `false`.
44+ #[ inline]
4445 pub fn is_get ( & self ) -> bool {
4546 * self == FuncType :: Get
4647 }
@@ -52,6 +53,7 @@ impl FuncType {
5253 ///
5354 /// # Returns
5455 /// - `true` if the `FuncType` is `GetMut`; otherwise, `false`.
56+ #[ inline]
5557 pub fn is_get_mut ( & self ) -> bool {
5658 * self == FuncType :: GetMut
5759 }
@@ -63,6 +65,7 @@ impl FuncType {
6365 ///
6466 /// # Returns
6567 /// - `true` if the `FuncType` is `Set`; otherwise, `false`.
68+ #[ inline]
6669 pub fn is_set ( & self ) -> bool {
6770 * self == FuncType :: Set
6871 }
@@ -74,6 +77,7 @@ impl FuncType {
7477 ///
7578 /// # Returns
7679 /// - `true` if the `FuncType` is `Debug`; otherwise, `false`.
80+ #[ inline]
7781 pub fn is_debug ( & self ) -> bool {
7882 * self == FuncType :: Debug
7983 }
@@ -85,6 +89,7 @@ impl FuncType {
8589 ///
8690 /// # Returns
8791 /// - `true` if the `FuncType` is `Unknown`; otherwise, `false`.
92+ #[ inline]
8893 pub fn is_unknown ( & self ) -> bool {
8994 * self == Self :: Unknown
9095 }
@@ -96,6 +101,7 @@ impl FuncType {
96101 ///
97102 /// # Returns
98103 /// - `true` if the `FuncType` parsed from the string is not `Unknown`; otherwise, `false`.
104+ #[ inline]
99105 pub fn is_known ( func_type_str : & str ) -> bool {
100106 let func_type: FuncType = func_type_str. parse :: < FuncType > ( ) . unwrap_or_default ( ) ;
101107 func_type != Self :: Unknown
0 commit comments