Type Alias tidy_sys::TidyReportFilter

source ·
pub type TidyReportFilter = Option<unsafe extern "C" fn(tdoc: TidyDoc, lvl: TidyReportLevel, line: uint, col: uint, mssg: ctmbstr) -> Bool>;
Expand description

This typedef represents the required signature for your provided callback function should you wish to register one with tidySetReportFilter(). Your callback function will be provided with the following parameters. @param tdoc Indicates the tidy document the message comes from. @param lvl Specifies the TidyReportLevel of the message. @param line Indicates the line number in the source document the message applies to. @param col Indicates the column in the source document the message applies to. @param mssg Specifies the complete message as Tidy would emit it. @return Your callback function will return yes if Tidy should include the report in its own output sink, or no if Tidy should suppress it.

Aliased Type§

enum TidyReportFilter {
    None,
    Some(unsafe extern "C" fn(_: *const _TidyDoc, _: TidyReportLevel, _: u32, _: u32, _: *const i8) -> u32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const _TidyDoc, _: TidyReportLevel, _: u32, _: u32, _: *const i8) -> u32)

Some value of type T.