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) -> &strReturn 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) -> FileTypeDef
impl Debug for FileTypeDef
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for FileTypeDef
impl PartialEq for FileTypeDef
fn eq(&self, other: &FileTypeDef) -> 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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FileTypeDef
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FileTypeDef
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FileTypeDef
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FileTypeDef
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for FileTypeDef
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> ToOwned for FileTypeDef
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for FileTypeDef
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FileTypeDef
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for FileTypeDef
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>