Struct lsp_types::RelativePattern
source · pub struct RelativePattern {
pub base_uri: OneOf<WorkspaceFolder, Url>,
pub pattern: Pattern,
}
Expand description
A relative pattern is a helper to construct glob patterns that are matched
relatively to a base URI. The common value for a baseUri
is a workspace
folder root, but it can be another absolute URI as well.
@since 3.17.0
Fields§
§base_uri: OneOf<WorkspaceFolder, Url>
A workspace folder or a base URI to which this pattern will be matched against relatively.
pattern: Pattern
The actual glob pattern.
Trait Implementations§
source§impl Clone for RelativePattern
impl Clone for RelativePattern
source§fn clone(&self) -> RelativePattern
fn clone(&self) -> RelativePattern
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 RelativePattern
impl Debug for RelativePattern
source§impl<'de> Deserialize<'de> for RelativePattern
impl<'de> Deserialize<'de> for RelativePattern
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 Ord for RelativePattern
impl Ord for RelativePattern
source§fn cmp(&self, other: &RelativePattern) -> Ordering
fn cmp(&self, other: &RelativePattern) -> 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<RelativePattern> for RelativePattern
impl PartialEq<RelativePattern> for RelativePattern
source§fn eq(&self, other: &RelativePattern) -> bool
fn eq(&self, other: &RelativePattern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RelativePattern> for RelativePattern
impl PartialOrd<RelativePattern> for RelativePattern
source§fn partial_cmp(&self, other: &RelativePattern) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativePattern) -> 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