Struct Glob

struct Glob<'a>(_)

Glob represents a single glob in a set of file type definitions.

There may be more than one glob for a particular file type.

This is used to report information about the highest precedent glob that matched.

Note that not all matches necessarily correspond to a specific glob. For example, if there are one or more selections and a file path doesn't match any of those selections, then the file path is considered to be ignored.

The lifetime 'a refers to the lifetime of the underlying file type definition, which corresponds to the lifetime of the file type matcher.

Implementations

impl<'a> Glob<'a>

fn file_type_def(self: &Self) -> Option<&FileTypeDef>

Return the file type definition that matched, if one exists. A file type definition always exists when a specific definition matches a file path.

impl<'a> Clone for Glob<'a>

fn clone(self: &Self) -> Glob<'a>

impl<'a> Debug for Glob<'a>

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

impl<'a> Freeze for Glob<'a>

impl<'a> RefUnwindSafe for Glob<'a>

impl<'a> Send for Glob<'a>

impl<'a> Sync for Glob<'a>

impl<'a> Unpin for Glob<'a>

impl<'a> UnwindSafe for Glob<'a>

impl<T> Any for Glob<'a>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Glob<'a>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Glob<'a>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Glob<'a>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Glob<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for Glob<'a>

unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T> ToOwned for Glob<'a>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Glob<'a>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Glob<'a>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Glob<'a>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>