@@ -284,7 +284,7 @@ impl Infer {
284
284
///
285
285
/// See [`is_app`](./fn.is_app.html).
286
286
pub fn is_app ( & self , buf : & [ u8 ] ) -> bool {
287
- self . is_type ( buf, MatcherType :: APP )
287
+ self . is_type ( buf, MatcherType :: App )
288
288
}
289
289
290
290
/// Determines whether a buffer is an archive type.
@@ -293,7 +293,7 @@ impl Infer {
293
293
///
294
294
/// See [`is_archive`](./fn.is_archive.html).
295
295
pub fn is_archive ( & self , buf : & [ u8 ] ) -> bool {
296
- self . is_type ( buf, MatcherType :: ARCHIVE )
296
+ self . is_type ( buf, MatcherType :: Archive )
297
297
}
298
298
299
299
/// Determines whether a buffer is an audio type.
@@ -302,7 +302,7 @@ impl Infer {
302
302
///
303
303
/// See [`is_audio`](./fn.is_audio.html).
304
304
pub fn is_audio ( & self , buf : & [ u8 ] ) -> bool {
305
- self . is_type ( buf, MatcherType :: AUDIO )
305
+ self . is_type ( buf, MatcherType :: Audio )
306
306
}
307
307
308
308
/// Determines whether a buffer is a book type.
@@ -311,7 +311,7 @@ impl Infer {
311
311
///
312
312
/// See [`is_book`](./fn.is_book.html).
313
313
pub fn is_book ( & self , buf : & [ u8 ] ) -> bool {
314
- self . is_type ( buf, MatcherType :: BOOK )
314
+ self . is_type ( buf, MatcherType :: Book )
315
315
}
316
316
317
317
/// Determines whether a buffer is a document type.
@@ -320,7 +320,7 @@ impl Infer {
320
320
///
321
321
/// See [`is_document`](./fn.is_document.html).
322
322
pub fn is_document ( & self , buf : & [ u8 ] ) -> bool {
323
- self . is_type ( buf, MatcherType :: DOC )
323
+ self . is_type ( buf, MatcherType :: Doc )
324
324
}
325
325
326
326
/// Determines whether a buffer is a font type.
@@ -329,7 +329,7 @@ impl Infer {
329
329
///
330
330
/// See [`is_font`](./fn.is_font.html).
331
331
pub fn is_font ( & self , buf : & [ u8 ] ) -> bool {
332
- self . is_type ( buf, MatcherType :: FONT )
332
+ self . is_type ( buf, MatcherType :: Font )
333
333
}
334
334
335
335
/// Determines whether a buffer is an image type.
@@ -338,7 +338,7 @@ impl Infer {
338
338
///
339
339
/// See [`is_image`](./fn.is_image.html).
340
340
pub fn is_image ( & self , buf : & [ u8 ] ) -> bool {
341
- self . is_type ( buf, MatcherType :: IMAGE )
341
+ self . is_type ( buf, MatcherType :: Image )
342
342
}
343
343
344
344
/// Determines whether a buffer is a video type.
@@ -347,7 +347,7 @@ impl Infer {
347
347
///
348
348
/// See [`is_video`](./fn.is_video.html).
349
349
pub fn is_video ( & self , buf : & [ u8 ] ) -> bool {
350
- self . is_type ( buf, MatcherType :: VIDEO )
350
+ self . is_type ( buf, MatcherType :: Video )
351
351
}
352
352
353
353
/// Determines whether a buffer is one of the custom types added.
@@ -368,7 +368,7 @@ impl Infer {
368
368
/// # }
369
369
/// ```
370
370
pub fn is_custom ( & self , buf : & [ u8 ] ) -> bool {
371
- self . is_type ( buf, MatcherType :: CUSTOM )
371
+ self . is_type ( buf, MatcherType :: Custom )
372
372
}
373
373
374
374
/// Adds a custom matcher.
@@ -394,7 +394,7 @@ impl Infer {
394
394
#[ cfg( feature = "alloc" ) ]
395
395
pub fn add ( & mut self , mime_type : & ' static str , extension : & ' static str , m : Matcher ) {
396
396
self . mmap . push ( Type :: new_static (
397
- MatcherType :: CUSTOM ,
397
+ MatcherType :: Custom ,
398
398
mime_type,
399
399
extension,
400
400
WrapMatcher ( m) ,
0 commit comments