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 for RelativePattern
impl PartialEq for RelativePattern
source§impl PartialOrd for RelativePattern
impl PartialOrd for RelativePattern
source§impl Serialize for RelativePattern
impl Serialize for RelativePattern
impl Eq for RelativePattern
impl StructuralPartialEq for RelativePattern
Auto Trait Implementations§
impl Freeze for RelativePattern
impl RefUnwindSafe for RelativePattern
impl Send for RelativePattern
impl Sync for RelativePattern
impl Unpin for RelativePattern
impl UnwindSafe for RelativePattern
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.