pub fn is_bad_document_exception(&self) -> bool {
        matches!(
            &self.kind,
            DetectDocumentTextErrorKind::BadDocumentException(_)
        )
    }
/// Returns `true` if the error kind is `DetectDocumentTextErrorKind::BadDocumentException`.
Returns `true` if the error kind is `DetectDocumentTextErrorKind::BadDocumentException`.
Returns ` true ` if the error kind is ` DetectDocumentTextErrorKind :: BadDocumentException ` .
pub fn is_bad_document_exception(&self) -> bool {
        matches!(
            &self.kind,
            DetectDocumentTextErrorKind::BadDocumentException(_)
        )
    }
pub fn is_bad_document_exception ( & self ) -> bool { matches ! ( self kind DetectDocumentTextErrorKind BadDocumentException ( ) ) }
Returns `true` if the error kind is `DetectDocumentTextErrorKind::BadDocumentException`.
Returns ` true ` if the error kind is ` DetectDocumentTextErrorKind :: BadDocumentException ` .
&self
&self