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§fn eq(&self, other: &GlobPattern) -> bool
fn eq(&self, other: &GlobPattern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GlobPattern
impl PartialOrd for GlobPattern
source§fn partial_cmp(&self, other: &GlobPattern) -> Option<Ordering>
fn partial_cmp(&self, other: &GlobPattern) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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