Enum lsp2::GlobPattern
pub enum GlobPattern {
String(String),
Relative(RelativePattern),
}
Expand description
The glob pattern. Either a string pattern or a relative pattern.
@since 3.17.0
Variants§
String(String)
Relative(RelativePattern)
Trait Implementations§
§impl Clone for GlobPattern
impl Clone for GlobPattern
§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 more§impl Debug for GlobPattern
impl Debug for GlobPattern
§impl<'de> Deserialize<'de> for GlobPattern
impl<'de> Deserialize<'de> for GlobPattern
§fn deserialize<__D>(
__deserializer: __D
) -> Result<GlobPattern, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<GlobPattern, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<RelativePattern> for GlobPattern
impl From<RelativePattern> for GlobPattern
§fn from(from: RelativePattern) -> GlobPattern
fn from(from: RelativePattern) -> GlobPattern
Converts to this type from the input type.
§impl From<String> for GlobPattern
impl From<String> for GlobPattern
§fn from(from: String) -> GlobPattern
fn from(from: String) -> GlobPattern
Converts to this type from the input type.
§impl Ord for GlobPattern
impl Ord for GlobPattern
§impl PartialEq<GlobPattern> for GlobPattern
impl PartialEq<GlobPattern> for GlobPattern
§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 ==
.§impl PartialOrd<GlobPattern> for GlobPattern
impl PartialOrd<GlobPattern> for GlobPattern
§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 more§impl Serialize for GlobPattern
impl Serialize for GlobPattern
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for GlobPattern
impl StructuralEq for GlobPattern
impl StructuralPartialEq for GlobPattern
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.