rmeta • Lines: 493rust
< #rustc 1.92.0 (ded5c06cf 2025-12-08)��١� �T�6a��D�
-5080178c80bf7a93� �**�ÙT��HО�9� -3e2e950d4bac10b5�� tests�,� �$� � cfg_if� � �4� � �1 � 5 2 A macro for defining `#[cfg]` if-else statements.� 6 � �:M J The macro provided by this crate, `cfg_if`, is similar to the `if/elif` C� ��M J preprocessor macro by allowing definition of a cascade of `#[cfg]` cases,� ��4 1 emitting the implementation which matches first.� � � ��Q N This allows you to conveniently provide a long list `#[cfg]`'d blocks of code� ��9 6 without having to rewrite each clause multiple times.� � � l�
# Example� � � <� ```� �� cfg_if::cfg_if! {� �� if #[cfg(unix)] {� ��: 7 fn foo() { /* unix specific functionality */ }� ��7 4 } else if #[cfg(target_pointer_width = "32")] {� ��= : fn foo() { /* non-unix, 32-bit functionality */ }� ��
} else {� ��6 3 fn foo() { /* fallback implementation */ }� L� }� ,� }� � � �� # fn main() {}� <� ��� � � 8� l� � 7 https://docs.rs/cfg-if� Ĵ ��1 �� �� ����� ��K H The main macro provided by this crate. See crate documentation for more� ��
information.� '|� � � � � �
8 � +� � � 8� � � � ,� � � ,� 8 i_meta� 4� &� 8� � � � � ,� � � ,� 8 i_tokens� D� &� 8� �
� ,� � � 8 $� 8 � +� � � 8� � � � ,� � � ,� 8 ei_meta� <� &� 8� � � � � ,� � � ,� 8 ei_tokens� L� &� 8� �
�
� ,� � �
8 $� � �
,� � �
,� 8 e_tokens� D� &�
8� �
�
-�
*�
�
� ,�
8 ,�
'�
8� 4�
�
�
� �
8 __items� <�
�
�
%�
�
� �
�
,�
�
�
,�
8� 4�
�
�
� ,�
�
� ,�
8� D�
� $� ,� � � � � � � ,� � � ,� 8�
<� � � � ,� � � ,� 8� L�
� $�
� ,� � � � � � � � � ,� � � ,� 8� D�
� $� -� %� � � � 8� <� � � ,� � � � � ,� � � ,� 8 � &� 8� �
� $�
� %� *� � � %� � � � 8� <� � � ,� � � � � ,� � � ,� 8� � &� 8� � � $�
� %� � � � � ,� � � ,� � � ,� 8� � &� 8� � � -� � � ,� � � ,� 8 tokens� 4� &� 8� �
� $� ,� � � ,� 8 rest� $� &� 8� � $�
� *� � � +� � � 8� � � � 8� � � � ,� � � ,� � � ,� 8� � � $� -� 8� � � � 8� � � � ,� � � ,� � � ,� 8� � � $�
� ,� 8 ,� '� 8� 4� � � � � 8 __temp_group� d� ,� � � ,� 8� 4�
� ,� 8 ,� '� 8� 4� � � � � 8� <� � � ,� � � � � ,� � � ,� 8� � � $�
� ,� � � � � ,� � � ,� 8� � � $� -� %� ,� � � ,� 8� $� $�
� %� � � � 8� d� ,� � � ,� 8� 4� &� 8� �
� *� � � ,� � � ,� 8� 4�
� %�
} Q�]�s�^g��җt �ǫ��e��X�� � )� ��
������ � "