Enum lsp_types::GlobPattern
source · pub enum GlobPattern {
String(Pattern),
Relative(RelativePattern),
}
Expand description
The glob pattern. Either a string pattern or a relative pattern.
@since 3.17.0
Variants§
String(Pattern)
Relative(RelativePattern)
Trait Implementations§
source§impl Clone for GlobPattern
impl Clone for GlobPattern
source§fn clone(&self) -> GlobPattern
fn clone(&self) -> GlobPattern
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GlobPattern
impl Debug for GlobPattern
source§impl<'de> Deserialize<'de> for GlobPattern
impl<'de> Deserialize<'de> for GlobPattern
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<RelativePattern> for GlobPattern
impl From<RelativePattern> for GlobPattern
source§fn from(from: RelativePattern) -> Self
fn from(from: RelativePattern) -> Self
Converts to this type from the input type.
source§impl From<String> for GlobPattern
impl From<String> for GlobPattern
source§impl Ord for GlobPattern
impl Ord for GlobPattern
source§fn cmp(&self, other: &GlobPattern) -> Ordering
fn cmp(&self, other: &GlobPattern) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for GlobPattern
impl PartialEq for GlobPattern
source§impl PartialOrd for GlobPattern
impl PartialOrd for GlobPattern
source§impl Serialize for GlobPattern
impl Serialize for GlobPattern
impl Eq for GlobPattern
impl StructuralPartialEq for GlobPattern
Auto Trait Implementations§
impl Freeze for GlobPattern
impl RefUnwindSafe for GlobPattern
impl Send for GlobPattern
impl Sync for GlobPattern
impl Unpin for GlobPattern
impl UnwindSafe for GlobPattern
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.