LCOV - code coverage report
Current view: top level - src/objc - decl_opt.rs (source / functions) Coverage Total Hit
Test: lief.lcov Lines: 0.0 % 10 0
Test Date: 2024-11-30:00:00:00 Functions: 0.0 % 2 0

            Line data    Source code
       1              : use lief_ffi as ffi;
       2              : 
       3              : /// This structure wraps options to tweak the generated output of
       4              : /// functions like [`crate::objc::Metadata::to_decl_with_opt`]
       5              : pub struct DeclOpt {
       6              :     /// Whether annotations like method's address should be printed
       7              :     pub show_annotations: bool,
       8              : }
       9              : 
      10              : impl Default for DeclOpt {
      11            0 :     fn default() -> DeclOpt {
      12            0 :         DeclOpt {
      13            0 :             show_annotations: true,
      14            0 :         }
      15            0 :     }
      16              : }
      17              : 
      18              : impl DeclOpt {
      19              :     #[doc(hidden)]
      20            0 :     pub fn to_ffi(&self) -> ffi::ObjC_DeclOpt {
      21            0 :         ffi::ObjC_DeclOpt {
      22            0 :             show_annotations: self.show_annotations
      23            0 :         }
      24            0 :     }
      25              : }
        

Generated by: LCOV version 2.1-1