Struct FileTypeDef

pub struct FileTypeDef { /* private fields */ }

A single file type definition.

File type definitions can be retrieved in aggregate from a file type matcher. File type definitions are also reported when its responsible for a match.

Implementations

impl FileTypeDef

fn name(&self) -> &str

Return the name of this file type.

fn globs(&self) -> &[String]

Return the globs used to recognize this file type.

Trait Implementations

impl Clone for FileTypeDef

fn clone(&self) -> Self

impl Debug for FileTypeDef

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for FileTypeDef

impl PartialEq for FileTypeDef

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for FileTypeDef

Auto Trait Implementations

impl Freeze for FileTypeDef

impl RefUnwindSafe for FileTypeDef

impl Send for FileTypeDef

impl Sync for FileTypeDef

impl Unpin for FileTypeDef

impl UnsafeUnpin for FileTypeDef

impl UnwindSafe for FileTypeDef

Blanket Implementations

impl<T> Any for FileTypeDef where T: 'static + ?Sized,

impl<T> Borrow<T> for FileTypeDef where T: ?Sized,

impl<T> BorrowMut<T> for FileTypeDef where T: ?Sized,

impl<T> CloneToUninit for FileTypeDef where T: Clone,

impl<T> From<T> for FileTypeDef

impl<T> Pointable for FileTypeDef

impl<T> ToOwned for FileTypeDef where T: Clone,

impl<T, U> Into<U> for FileTypeDef where U: From<T>,

impl<T, U> TryFrom<U> for FileTypeDef where U: Into<T>,

impl<T, U> TryInto<U> for FileTypeDef where U: TryFrom<T>,